[TEST] wait for no initializing shards

This commit is contained in:
Martijn van Groningen 2018-09-14 09:59:06 +02:00
parent c9131983f5
commit 4bcad95fe7
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
2 changed files with 2 additions and 0 deletions

View File

@ -243,6 +243,7 @@ public class FollowIndexSecurityIT extends ESRestTestCase {
Request request = new Request("GET", "/_cluster/health/" + index); Request request = new Request("GET", "/_cluster/health/" + index);
request.addParameter("wait_for_status", "yellow"); request.addParameter("wait_for_status", "yellow");
request.addParameter("wait_for_no_relocating_shards", "true"); request.addParameter("wait_for_no_relocating_shards", "true");
request.addParameter("wait_for_no_initializing_shards", "true");
request.addParameter("timeout", "70s"); request.addParameter("timeout", "70s");
request.addParameter("level", "shards"); request.addParameter("level", "shards");
adminClient().performRequest(request); adminClient().performRequest(request);

View File

@ -204,6 +204,7 @@ public class FollowIndexIT extends ESRestTestCase {
Request request = new Request("GET", "/_cluster/health/" + index); Request request = new Request("GET", "/_cluster/health/" + index);
request.addParameter("wait_for_status", "yellow"); request.addParameter("wait_for_status", "yellow");
request.addParameter("wait_for_no_relocating_shards", "true"); request.addParameter("wait_for_no_relocating_shards", "true");
request.addParameter("wait_for_no_initializing_shards", "true");
request.addParameter("timeout", "70s"); request.addParameter("timeout", "70s");
request.addParameter("level", "shards"); request.addParameter("level", "shards");
client().performRequest(request); client().performRequest(request);