Skip to content

Commit 5c3b3b2

Browse files
authored
Expose ClusterInfoService via AllocationService (#134704)
Relates: ES-12799
1 parent bfdd51b commit 5c3b3b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/src/main/java/org/elasticsearch/cluster/routing/allocation/AllocationService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ public ShardRoutingRoleStrategy getShardRoutingRoleStrategy() {
138138
return shardRoutingRoleStrategy;
139139
}
140140

141+
public ClusterInfoService getClusterInfoService() {
142+
return clusterInfoService;
143+
}
144+
141145
/**
142146
* Applies the started shards. Note, only initializing ShardRouting instances that exist in the routing table should be
143147
* provided as parameter and no duplicates should be contained.

0 commit comments

Comments
 (0)