Skip to content

Commit b799100

Browse files
committed
Only verified changes
Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
1 parent f517686 commit b799100

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

server/src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationAllocationIT.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,14 @@ public void testSingleIndexShardAllocation() throws Exception {
170170

171171
// Remove a node
172172
internalCluster().stopRandomNode(InternalTestCluster.nameFilter(nodeNames.get(0)));
173-
internalCluster().validateClusterFormed();
174-
ensureGreen(TimeValue.timeValueSeconds(120));
173+
ensureGreen(TimeValue.timeValueSeconds(60));
175174
state = client().admin().cluster().prepareState().execute().actionGet().getState();
176175
logger.info(ShardAllocations.printShardDistribution(state));
177176
verifyPerIndexPrimaryBalance();
178177

179178
// Add a new node
180179
internalCluster().startDataOnlyNode();
181-
internalCluster().validateClusterFormed();
182-
ensureGreen(TimeValue.timeValueSeconds(120));
180+
ensureGreen(TimeValue.timeValueSeconds(60));
183181
state = client().admin().cluster().prepareState().execute().actionGet().getState();
184182
logger.info(ShardAllocations.printShardDistribution(state));
185183
verifyPerIndexPrimaryBalance();

0 commit comments

Comments
 (0)