Skip to content

Commit b24a7e2

Browse files
authored
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 14e6b07 commit b24a7e2

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
@@ -692,6 +692,7 @@ public void testNoopUpdate() {
692692
client().admin().cluster().prepareHealth()
693693
.setWaitForGreenStatus()
694694
.setWaitForNoInitializingShards(true)
695+
.setWaitForNoRelocatingShards(true)
695696
.setWaitForEvents(Priority.LANGUID)
696697
.setTimeout(TimeValue.MAX_VALUE)
697698
.get();

0 commit comments

Comments
 (0)