[9.1] Remove ILM-stopped-check before the cluster update in migrateToDataTiersRouting (#140885) (#140892)#140950
Merged
elasticsearchmachine merged 1 commit intoelastic:9.1from Jan 20, 2026
Conversation
…iersRouting` (elastic#140885) (elastic#140892) In order to run the migrate data tiers request, we need to ensure that ILM is stopped. In the `TransportMigrateToDataTiersAction` we performed this check twice: 1. The first time was when the API was called to avoid creating cluster state updates that were bound to fail. 2. The second time was during the cluster state update, to ensure that the cluster state has the correct conditions when applying the change. It is possible that the first check is applied on an outdated cluster state causing the request to fail while it could succeed. In this PR, considering the usage patterns of this API, we believe the benefit of the first check is very small, so we keep only the second which is the up-to-date one. Relevant test: https://github.com/elastic/elasticsearch/blob/main/x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/MigrateToDataTiersIT.java#L82-L87 Fixes elastic#140885
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backports the following commits to 9.1:
migrateToDataTiersRouting(GET _ilm/statusreturnsSTOPPEDbefore it's safe to runPOST _ilm/migrate_to_data_tiers#140885) (Remove ILM-stopped-check before the cluster update inmigrateToDataTiersRouting(#140885) #140892)