Allow more time for restart tests to reach yellow state. (#48434) (#48480)

The testWatcher method will on occasion timeout waiting for
a yellow cluster state. This change increases the timeout
to 60s.
This commit is contained in:
Jake Landis 2019-10-24 12:07:02 -05:00 committed by GitHub
parent c19379ef31
commit a4614daf46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -602,7 +602,7 @@ public class FullClusterRestartIT extends AbstractFullClusterRestartTestCase {
private void waitForYellow(String indexName) throws IOException {
Request request = new Request("GET", "/_cluster/health/" + indexName);
request.addParameter("wait_for_status", "yellow");
request.addParameter("timeout", "30s");
request.addParameter("timeout", "60s");
request.addParameter("wait_for_no_relocating_shards", "true");
if (getOldClusterVersion().onOrAfter(Version.V_6_2_0)) {
request.addParameter("wait_for_no_initializing_shards", "true");