Skip to content

Commit 8bc0aba

Browse files
committed
Use the same PartitionedClusterFactory for NodeAllocationStatsAndWeights and BalancedShardsAllocator
1 parent 2db4d2e commit 8bc0aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/cluster/ClusterModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public ClusterModule(
158158
: new GlobalPartitionedClusterFactory(balancerSettings);
159159
var nodeAllocationStatsAndWeightsCalculator = new NodeAllocationStatsAndWeightsCalculator(
160160
writeLoadForecaster,
161-
new GlobalPartitionedClusterFactory(balancerSettings)
161+
partitionedClusterFactory
162162
);
163163
this.shardsAllocator = createShardsAllocator(
164164
settings,

0 commit comments

Comments
 (0)