have the quick rolling restart stress test also wait for 0 relocating shards

This commit is contained in:
Shay Banon 2012-07-06 01:01:18 +02:00
parent dcf9194820
commit 8d1e04a973
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ public class QuickRollingRestartStressTest {
System.out.println("--> done rolling restart [" + rollingRestart + "]");
System.out.println("--> waiting for green state now...");
ClusterHealthResponse clusterHealthResponse = client.client().admin().cluster().prepareHealth().setWaitForGreenStatus().setTimeout("10m").execute().actionGet();
ClusterHealthResponse clusterHealthResponse = client.client().admin().cluster().prepareHealth().setWaitForGreenStatus().setWaitForRelocatingShards(0).setTimeout("10m").execute().actionGet();
if (clusterHealthResponse.timedOut()) {
System.err.println("--> timed out waiting for green state...");
ClusterState state = client.client().admin().cluster().prepareState().execute().actionGet().state();