Skip to content

Conversation

@nielsbauman
Copy link
Contributor

@nielsbauman nielsbauman commented Jun 16, 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 IndexLifecycleClusterStateUpdateTasks.

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

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 nielsbauman added >non-issue :Data Management/ILM+SLM Index and Snapshot lifecycle management labels Jun 16, 2025
@elasticsearchmachine elasticsearchmachine added Team:Data Management Meta label for data/management team v9.1.0 labels Jun 16, 2025
@elasticsearchmachine
Copy link
Collaborator

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

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

@nielsbauman nielsbauman enabled auto-merge (squash) June 17, 2025 10:22
@nielsbauman nielsbauman merged commit f398265 into elastic:main Jun 17, 2025
27 of 28 checks passed
@nielsbauman nielsbauman deleted the fix-ilm-tasks branch June 17, 2025 11:33
nielsbauman added a commit to nielsbauman/elasticsearch that referenced this pull request Jun 30, 2025
These failing tests were already addressed in elastic#129506.

Resolves elastic#129471
Resolves elastic#129479
Resolves elastic#129480
Resolves elastic#129481
elasticsearchmachine pushed a commit that referenced this pull request Jun 30, 2025
These failing tests were already addressed in #129506.

Resolves #129471 Resolves #129479 Resolves #129480 Resolves #129481
nielsbauman added a commit to nielsbauman/elasticsearch that referenced this pull request Jun 30, 2025
These failing tests were already addressed in elastic#129506.

Resolves elastic#129471 Resolves elastic#129479 Resolves elastic#129480 Resolves elastic#129481
elasticsearchmachine pushed a commit that referenced this pull request Jun 30, 2025
These failing tests were already addressed in #129506.

Resolves #129471 Resolves #129479 Resolves #129480 Resolves #129481
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jul 3, 2025
These failing tests were already addressed in elastic#129506.

Resolves elastic#129471 Resolves elastic#129479 Resolves elastic#129480 Resolves elastic#129481
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

3 participants