Added timeout to ensureGreen() for testClusterGreenAfterPartialRelocation (#1983)
* Added timeout to ensureGreen() for testClusterGreenAfterPartialRelocation Signed-off-by: Owais Kazi <owaiskazi19@gmail.com> * Fixed spotless imports Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
This commit is contained in:
parent
e399ac1f27
commit
054595b140
|
@ -12,6 +12,7 @@ import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope;
|
|||
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;
|
||||
|
||||
|
@ -112,6 +113,6 @@ public class MovePrimaryFirstTests extends OpenSearchIntegTestCase {
|
|||
internalCluster().stopRandomNode(InternalTestCluster.nameFilter(z1n1));
|
||||
internalCluster().stopRandomNode(InternalTestCluster.nameFilter(z1n2));
|
||||
} catch (Exception e) {}
|
||||
ensureGreen();
|
||||
ensureGreen(TimeValue.timeValueSeconds(60));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,7 +55,6 @@ import org.apache.lucene.index.IndexableField;
|
|||
import org.apache.lucene.index.LeafReader;
|
||||
import org.apache.lucene.index.LeafReaderContext;
|
||||
import org.apache.lucene.index.LiveIndexWriterConfig;
|
||||
import org.apache.lucene.index.LogByteSizeMergePolicy;
|
||||
import org.apache.lucene.index.LogDocMergePolicy;
|
||||
import org.apache.lucene.index.MergePolicy;
|
||||
import org.apache.lucene.index.NoMergePolicy;
|
||||
|
|
Loading…
Reference in New Issue