Skip to content

Commit 5bd6ca2

Browse files
committed
enable rebalance
1 parent 9ec50c1 commit 5bd6ca2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/internalClusterTest/java/org/elasticsearch/snapshots/SnapshotStressTestsIT.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.elasticsearch.cluster.metadata.SingleNodeShutdownMetadata;
3535
import org.elasticsearch.cluster.node.DiscoveryNode;
3636
import org.elasticsearch.cluster.node.DiscoveryNodes;
37+
import org.elasticsearch.cluster.routing.allocation.decider.EnableAllocationDecider;
3738
import org.elasticsearch.cluster.service.ClusterService;
3839
import org.elasticsearch.common.Priority;
3940
import org.elasticsearch.common.Randomness;
@@ -104,6 +105,7 @@ public void testRandomActivities() throws InterruptedException {
104105
protected Settings nodeSettings(int nodeOrdinal, Settings otherSettings) {
105106
return Settings.builder()
106107
.put(super.nodeSettings(nodeOrdinal, otherSettings))
108+
.put(EnableAllocationDecider.CLUSTER_ROUTING_REBALANCE_ENABLE_SETTING.getKey(), EnableAllocationDecider.Rebalance.ALL)
107109
.put(SnapshotsService.SHARD_SNAPSHOT_PER_NODE_LIMIT_SETTING.getKey(), 5) // more aggressive limit
108110
.build();
109111
}

0 commit comments

Comments
 (0)