- Notifications
You must be signed in to change notification settings - Fork 25.5k
Closed
Labels
:Data Management/ILM+SLMIndex and Snapshot lifecycle managementIndex and Snapshot lifecycle managementbug"" muted="" aria-describedby="MDU6TGFiZWwyMzE3Mw==-tooltip :R5b96b:">>bugTeam:Data ManagementMeta label for data/management teamMeta label for data/management team
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.
Metadata
Metadata
Assignees
Labels
:Data Management/ILM+SLMIndex and Snapshot lifecycle managementIndex and Snapshot lifecycle managementbug"" muted="" aria-describedby="MDU6TGFiZWwyMzE3Mw==-tooltip :Ra5pmb:">>bugTeam:Data ManagementMeta label for data/management teamMeta label for data/management team