Skip to content

Commit 2de4651

Browse files
Gagan6164liuguoqingfz
authored andcommitted
Set Remote Capable Shard Per Node Field in Constructor (#19672)
Signed-off-by: Gagan Singh Saini <[email protected]> Signed-off-by: Joe Liu <[email protected]>
1 parent 6c16883 commit 2de4651

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main/java/org/opensearch/cluster/routing/allocation/decider/ShardsLimitAllocationDecider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ public ShardsLimitAllocationDecider(Settings settings, ClusterSettings clusterSe
166166
this.settings = settings;
167167
this.clusterShardLimit = CLUSTER_TOTAL_SHARDS_PER_NODE_SETTING.get(settings);
168168
this.clusterPrimaryShardLimit = CLUSTER_TOTAL_PRIMARY_SHARDS_PER_NODE_SETTING.get(settings);
169+
this.clusterRemoteCapableShardLimit = CLUSTER_TOTAL_REMOTE_CAPABLE_SHARDS_PER_NODE_SETTING.get(settings);
169170
clusterSettings.addSettingsUpdateConsumer(CLUSTER_TOTAL_SHARDS_PER_NODE_SETTING, this::setClusterShardLimit);
170171
clusterSettings.addSettingsUpdateConsumer(CLUSTER_TOTAL_PRIMARY_SHARDS_PER_NODE_SETTING, this::setClusterPrimaryShardLimit);
171172
clusterSettings.addSettingsUpdateConsumer(

0 commit comments

Comments
 (0)