ReactiveStorageDeciderService
constructs a lot of RoutingNodes
#74325
Labels
>bug
:Distributed Coordination/Autoscaling
Team:Distributed (Obsolete)
Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.
Well ok it constructs two of them:
elasticsearch/x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/storage/ReactiveStorageDeciderService.java
Line 194 in 095e49e
elasticsearch/x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/storage/ReactiveStorageDeciderService.java
Line 211 in 095e49e
That's still quite a lot, these things are expensive to construct:
elasticsearch/server/src/main/java/org/elasticsearch/cluster/routing/allocation/AllocationService.java
Lines 499 to 504 in 095e49e
I don't think we need these things to be mutable, so why not use
ClusterState#getRoutingNodes()
instead?The text was updated successfully, but these errors were encountered: