Skip to content

ReactiveStorageDeciderService constructs a lot of RoutingNodes #74325

@DaveCTurner

Description

@DaveCTurner

Well ok it constructs two of them:

That's still quite a lot, these things are expensive to construct:

/**
* 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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions