You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An index with at least 1 replica is just about to start its Shrink step, so it does the following:
sets the index to read-only
sets the index to be allocated only on node_id:123XYZ
waits for a copy of each shard on node_id:123XYZ
performs the shrink step
etc
If, after accomplishing step 2, but before step 3 is done, the user restarts the cluster, when the cluster comes back up, due to the allocation rule, the replicas for the index will not be allowed to be allocated because of the _id filtering performed in step 2. This leads the check in step 3 never to pass due to the check at:
Since it's still possible to shrink an index when replicas are unassigned, we
should not check that all copies are available when performing the shrink, since
we set the allocation requirement for a single node.
Resolveselastic#35321
Since it's still possible to shrink an index when replicas are unassigned, we
should not check that all copies are available when performing the shrink, since
we set the allocation requirement for a single node.
Resolves#35321
Since it's still possible to shrink an index when replicas are unassigned, we
should not check that all copies are available when performing the shrink, since
we set the allocation requirement for a single node.
Resolves#35321
pgomulka
pushed a commit
to pgomulka/elasticsearch
that referenced
this issue
Nov 13, 2018
Since it's still possible to shrink an index when replicas are unassigned, we
should not check that all copies are available when performing the shrink, since
we set the allocation requirement for a single node.
Resolveselastic#35321
Consider the following scenario:
An index with at least 1 replica is just about to start its Shrink step, so it does the following:
node_id:123XYZ
node_id:123XYZ
If, after accomplishing step 2, but before step 3 is done, the user restarts the cluster, when the cluster comes back up, due to the allocation rule, the replicas for the index will not be allowed to be allocated because of the
_id
filtering performed in step 2. This leads the check in step 3 never to pass due to the check at:elasticsearch/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/CheckShrinkReadyStep.java
Lines 56 to 60 in ec53288
And a perpetual error step op:
Since shrink does not require all copies of the shard to be active, we should remove this check
The text was updated successfully, but these errors were encountered: