File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
server/src/internalClusterTest/java/org/elasticsearch/snapshots Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 3434import org .elasticsearch .cluster .metadata .SingleNodeShutdownMetadata ;
3535import org .elasticsearch .cluster .node .DiscoveryNode ;
3636import org .elasticsearch .cluster .node .DiscoveryNodes ;
37+ import org .elasticsearch .cluster .routing .allocation .decider .EnableAllocationDecider ;
3738import org .elasticsearch .cluster .service .ClusterService ;
3839import org .elasticsearch .common .Priority ;
3940import 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 }
You can’t perform that action at this time.
0 commit comments