mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 21:18:31 +00:00
have the quick rolling restart stress test also wait for 0 relocating shards
This commit is contained in:
parent
dcf9194820
commit
8d1e04a973
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user