Skip to content

Make IndexLifecycleClusterStateUpdateTask project-aware #129366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 16, 2025

Conversation

nielsbauman
Copy link
Contributor

Updates the abstract class and its subclasses to be able to handle multiple projects.

Updates the abstract class and its subclasses to be able to handle
multiple projects.
@nielsbauman nielsbauman added >non-issue :Data Management/ILM+SLM Index and Snapshot lifecycle management labels Jun 12, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@elasticsearchmachine elasticsearchmachine added Team:Data Management Meta label for data/management team v9.1.0 labels Jun 12, 2025
Copy link
Member

@PeteGillinElastic PeteGillinElastic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@nielsbauman nielsbauman enabled auto-merge (squash) June 16, 2025 09:04
@nielsbauman nielsbauman merged commit ecee8b1 into elastic:main Jun 16, 2025
17 of 18 checks passed
@nielsbauman nielsbauman deleted the ilm-cluster-state-update-task branch June 16, 2025 10:10
nielsbauman added a commit to nielsbauman/elasticsearch that referenced this pull request Jun 16, 2025
Since elastic#129366 we obtain a `ProjectState` by using the `Index` to look up
the project from the cluster state. However, when an index is deleted,
that statement fails. Since we have no guaranteed way of determining
which project a deleted index was from, we need to explicitly pass the
`ProjectID` in the `IndexLifecycleClusterStateUpdateTask`s.

Incidentally, we have to make parts of the `IndexLifecycleService` and
`IndexLifecycleRunner` project-aware - but they'll likely need a
follow-up PR to finish them.

Fixes elastic#129489
Fixes elastic#129490
Fixes elastic#129491
nielsbauman added a commit that referenced this pull request Jun 17, 2025
Since #129366 we obtain a `ProjectState` by using the `Index` to look up
the project from the cluster state. However, when an index is deleted,
that statement fails. Since we have no guaranteed way of determining
which project a deleted index was from, we need to explicitly pass the
`ProjectID` in the `IndexLifecycleClusterStateUpdateTask`s.

Incidentally, we have to make parts of the `IndexLifecycleService` and
`IndexLifecycleRunner` project-aware - but they'll likely need a
follow-up PR to finish them.

Fixes #129489
Fixes #129490
Fixes #129491
Fixes #129510
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/ILM+SLM Index and Snapshot lifecycle management >non-issue Team:Data Management Meta label for data/management team v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants