Use ILM skip setting in shrink action#129455
Conversation
We add the skip setting to prevent ILM from processing the shrunken index before the execution state has been copied - which could happen if the shards of the shrunken index take a long time to allocate. Resolves elastic#109206
|
Pinging @elastic/es-data-management (Team:Data Management) |
|
Hi @nielsbauman, I've created a changelog YAML for you. |
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for the ILM skip setting within the shrink action to avoid premature ILM processing prior to copying the execution state. It updates both test and production code in ShrinkStep and CopyExecutionStateStep, and documents the change in the changelog.
- Adds the skip setting to the ILM shrink action in both the production code and tests.
- Removes the skip setting from the index settings in CopyExecutionStateStep after copying the execution state.
- Updates the changelog to reflect the behavioral change.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/ShrinkStepTests.java | Adds a test for the new ILM skip setting. |
| x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/ShrinkStep.java | Adds the ILM skip setting to the shrink action. |
| x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/CopyExecutionStateStep.java | Removes the skip setting post execution state copy to allow proper ILM re-processing. |
| docs/changelog/129455.yaml | Documents the resolution of #109206 with the ILM skip setting behavior. |
Comments suppressed due to low confidence (1)
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/CopyExecutionStateStep.java:117
- Consider calling newSettings.build() to convert the Settings.Builder to a Settings instance if indexMetadataBuilder.settings() expects an immutable Settings object.
indexMetadataBuilder.settings(newSettings);
💔 Backport failed
You can use sqren/backport to manually backport by running |
We add the skip setting to prevent ILM from processing the shrunken index before the execution state has been copied - which could happen if the shards of the shrunken index take a long time to allocate. Resolves elastic#109206 (cherry picked from commit 217275c) # Conflicts: # x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/CopyExecutionStateStep.java
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
* Use ILM skip setting in shrink action (#129455) We add the skip setting to prevent ILM from processing the shrunken index before the execution state has been copied - which could happen if the shards of the shrunken index take a long time to allocate. Resolves #109206 (cherry picked from commit 217275c) # Conflicts: # x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/CopyExecutionStateStep.java * [CI] Auto commit changes from spotless * Fix compilation --------- Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
We add the skip setting to prevent ILM from processing the shrunken index before the execution state has been copied - which could happen if the shards of the shrunken index take a long time to allocate.
Resolves #109206