Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TEST] Remove redundant cluster checks #98694

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ public void testUnassignedReplicaWithPriorCopy() throws Exception {
logger.info("--> restarting the stopped nodes");
internalCluster().startNode(Settings.builder().put("node.name", nodes.get(0)).put(node0DataPathSettings).build());
internalCluster().startNode(Settings.builder().put("node.name", nodes.get(1)).put(node1DataPathSettings).build());
ensureStableCluster(3);

boolean includeYesDecisions = randomBoolean();
boolean includeDiskInfo = randomBoolean();
Expand Down Expand Up @@ -612,7 +611,6 @@ public void testAllocationFilteringPreventsShardMove() throws Exception {
public void testRebalancingNotAllowed() throws Exception {
logger.info("--> starting a single node");
internalCluster().startNode();
ensureStableCluster(1);

prepareIndex(5, 0);

Expand All @@ -621,7 +619,6 @@ public void testRebalancingNotAllowed() throws Exception {

logger.info("--> starting another node, with rebalancing disabled, it should get no shards");
internalCluster().startNode();
ensureStableCluster(2);

boolean includeYesDecisions = randomBoolean();
boolean includeDiskInfo = randomBoolean();
Expand Down Expand Up @@ -720,7 +717,6 @@ public void testRebalancingNotAllowed() throws Exception {
public void testWorseBalance() throws Exception {
logger.info("--> starting a single node");
internalCluster().startNode();
ensureStableCluster(1);

prepareIndex(5, 0);

Expand All @@ -729,7 +725,6 @@ public void testWorseBalance() throws Exception {

logger.info("--> starting another node, with the rebalance threshold so high, it should not get any shards");
internalCluster().startNode();
ensureStableCluster(2);

boolean includeYesDecisions = randomBoolean();
boolean includeDiskInfo = randomBoolean();
Expand Down Expand Up @@ -820,7 +815,6 @@ public void testWorseBalance() throws Exception {
public void testBetterBalanceButCannotAllocate() throws Exception {
logger.info("--> starting a single node");
String firstNode = internalCluster().startNode();
ensureStableCluster(1);

prepareIndex(5, 0);

Expand All @@ -829,7 +823,6 @@ public void testBetterBalanceButCannotAllocate() throws Exception {

logger.info("--> starting another node, with filtering not allowing allocation to the new node, it should not get any shards");
internalCluster().startNode();
ensureStableCluster(2);

boolean includeYesDecisions = randomBoolean();
boolean includeDiskInfo = randomBoolean();
Expand Down