-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Closed
Labels
:Data Management/ILM+SLMDO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.>bugTeam:Data Management (obsolete)DO NOT USE. This team no longer exists.DO NOT USE. This team no longer exists.
Description
In the ILM Shrink action, ILM performs (among others) the following steps:
elasticsearch/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/ShrinkAction.java
Lines 174 to 176 in 0ae817e
| StepKey shrinkKey = new StepKey(phase, NAME, ShrinkStep.NAME); | |
| StepKey enoughShardsKey = new StepKey(phase, NAME, ShrunkShardsAllocatedStep.NAME); | |
| StepKey copyMetadataKey = new StepKey(phase, NAME, CopyExecutionStateStep.NAME); |
The
ShrinkStep copies the ILM policy name in the shrink request:elasticsearch/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/ShrinkStep.java
Line 85 in 0ae817e
| .put(LifecycleSettings.LIFECYCLE_NAME, policyName) |
However, when the allocation of the shards of the shrunken index takes "some" time (which is not unexpected for larger shards), which is what the second step waits for, ILM starts executing the policy on the shrunken index before the ILM execution state has been copied to that index (step three). This means ILM will start executing the policy from the beginning for the shrunken index, causing the
WaitForRolloverReadyStep to fail here, instead of proceeding in the shrink action.
This is not necessarily harmful, it's just "noisy" - there is no data loss, it only produces some error logs and possibly a yellow health API status.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Data Management/ILM+SLMDO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.>bugTeam:Data Management (obsolete)DO NOT USE. This team no longer exists.DO NOT USE. This team no longer exists.