Skip to content

Commit 2a322b8

Browse files
committed
[TEST] wait for no initializing shards
1 parent 07642e3 commit 2a322b8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

x-pack/plugin/ccr/qa/multi-cluster-with-security/src/test/java/org/elasticsearch/xpack/ccr/FollowIndexSecurityIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ private static void ensureYellow(String index) throws IOException {
243243
Request request = new Request("GET", "/_cluster/health/" + index);
244244
request.addParameter("wait_for_status", "yellow");
245245
request.addParameter("wait_for_no_relocating_shards", "true");
246+
request.addParameter("wait_for_no_initializing_shards", "true");
246247
request.addParameter("timeout", "70s");
247248
request.addParameter("level", "shards");
248249
adminClient().performRequest(request);

x-pack/plugin/ccr/qa/multi-cluster/src/test/java/org/elasticsearch/xpack/ccr/FollowIndexIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ private static void ensureYellow(String index) throws IOException {
204204
Request request = new Request("GET", "/_cluster/health/" + index);
205205
request.addParameter("wait_for_status", "yellow");
206206
request.addParameter("wait_for_no_relocating_shards", "true");
207+
request.addParameter("wait_for_no_initializing_shards", "true");
207208
request.addParameter("timeout", "70s");
208209
request.addParameter("level", "shards");
209210
client().performRequest(request);

0 commit comments

Comments
 (0)