Skip to content

Commit

Permalink
Added timeout to ensureGreen() for testClusterGreenAfterPartialReloca…
Browse files Browse the repository at this point in the history
…tion (opensearch-project#2074)

Signed-off-by: Ankit Jain <[email protected]>
  • Loading branch information
jainankitk authored Feb 9, 2022
1 parent bb4d06c commit f0984eb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.opensearch.action.admin.cluster.settings.ClusterUpdateSettingsRequest;
import org.opensearch.cluster.ClusterStateListener;
import org.opensearch.common.settings.Settings;
import org.opensearch.common.unit.TimeValue;
import org.opensearch.test.InternalTestCluster;
import org.opensearch.test.OpenSearchIntegTestCase;

Expand Down Expand Up @@ -121,6 +122,6 @@ public void testClusterGreenAfterPartialRelocation() throws InterruptedException
internalCluster().stopRandomNode(InternalTestCluster.nameFilter(z1n1));
internalCluster().stopRandomNode(InternalTestCluster.nameFilter(z1n2));
} catch (Exception e) {}
ensureGreen();
ensureGreen(TimeValue.timeValueSeconds(60));
}
}

0 comments on commit f0984eb

Please sign in to comment.