Skip to content

Commit

Permalink
Only verified changes
Browse files Browse the repository at this point in the history
Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
  • Loading branch information
ltaragi committed Feb 23, 2025
1 parent f517686 commit b799100
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,14 @@ public void testSingleIndexShardAllocation() throws Exception {

// Remove a node
internalCluster().stopRandomNode(InternalTestCluster.nameFilter(nodeNames.get(0)));
internalCluster().validateClusterFormed();
ensureGreen(TimeValue.timeValueSeconds(120));
ensureGreen(TimeValue.timeValueSeconds(60));
state = client().admin().cluster().prepareState().execute().actionGet().getState();
logger.info(ShardAllocations.printShardDistribution(state));
verifyPerIndexPrimaryBalance();

// Add a new node
internalCluster().startDataOnlyNode();
internalCluster().validateClusterFormed();
ensureGreen(TimeValue.timeValueSeconds(120));
ensureGreen(TimeValue.timeValueSeconds(60));
state = client().admin().cluster().prepareState().execute().actionGet().getState();
logger.info(ShardAllocations.printShardDistribution(state));
verifyPerIndexPrimaryBalance();
Expand Down

0 comments on commit b799100

Please sign in to comment.