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
Check no unassigned shards even if the node already left (#94722)
We are currently checking if there are any unassigned shards on the shutting
down node before returning SingleNodeShutdownMetadata.Status.COMPLETE. However
this check is only triggered if the node is still running. If the node
unexpectedly exists the cluster or dies during the migration then we are at
risk of loosing shard data of those unassigned shards.
This change performs the check even if the node is no longer part of the cluster.
Copy file name to clipboardExpand all lines: x-pack/plugin/shutdown/src/internalClusterTest/java/org/elasticsearch/xpack/shutdown/NodeShutdownShardsIT.java
+3-11Lines changed: 3 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -414,7 +414,7 @@ public void testNodeShutdownWithUnassignedShards() throws Exception {
414
414
finalStringnodeA = internalCluster().startNode();
415
415
finalStringnodeAId = getNodeId(nodeA);
416
416
417
-
createIndex("index", 1, 1);
417
+
createIndex("index", 1, 0);
418
418
419
419
ensureYellow("index");
420
420
@@ -423,18 +423,10 @@ public void testNodeShutdownWithUnassignedShards() throws Exception {
Copy file name to clipboardExpand all lines: x-pack/plugin/shutdown/src/main/java/org/elasticsearch/xpack/shutdown/TransportGetShutdownStatusAction.java
Copy file name to clipboardExpand all lines: x-pack/plugin/shutdown/src/test/java/org/elasticsearch/xpack/shutdown/TransportGetShutdownStatusActionTests.java
0 commit comments