-
Couldn't load subscription status.
- Fork 25.6k
Closed
Labels
:Distributed Coordination/Autoscaling>bugTeam:Distributed (Obsolete)Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.
Description
Well ok it constructs two of them:
Line 194 in 095e49e
| RoutingNodes routingNodes = new RoutingNodes(state, false); |
Line 211 in 095e49e
| RoutingNodes routingNodes = new RoutingNodes(state, false); |
That's still quite a lot, these things are expensive to construct:
Lines 499 to 504 in 095e49e
| /** | |
| * Create a mutable {@link RoutingNodes}. This is a costly operation so this must only be called once! | |
| */ | |
| private RoutingNodes getMutableRoutingNodes(ClusterState clusterState) { | |
| return new RoutingNodes(clusterState, false); | |
| } |
I don't think we need these things to be mutable, so why not use ClusterState#getRoutingNodes() instead?
Metadata
Metadata
Assignees
Labels
:Distributed Coordination/Autoscaling>bugTeam:Distributed (Obsolete)Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.