Skip to content

Commit 4518f84

Browse files
committed
Wait on relocation in UpdateSettingsIT#testNoopUpdate (#71401)
This test works by capturing the applied cluster state and verifying that it does not change as no-op updates are applied. However the captured cluster state might contain some ongoing relocations which subsequently finish, causing an unexpected cluster state update. This commit fixes that by waiting for any ongoing relocations too. Relates #61348 Closes #70961
1 parent b4e19a2 commit 4518f84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/internalClusterTest/java/org/elasticsearch/indices/settings/UpdateSettingsIT.java

+1
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,7 @@ public void testNoopUpdate() {
691691
client().admin().cluster().prepareHealth()
692692
.setWaitForGreenStatus()
693693
.setWaitForNoInitializingShards(true)
694+
.setWaitForNoRelocatingShards(true)
694695
.setWaitForEvents(Priority.LANGUID)
695696
.setTimeout(TimeValue.MAX_VALUE)
696697
.get();

0 commit comments

Comments
 (0)