You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Andrzej Bialecki (Jira)" <ji...@apache.org> on 2021/08/04 11:36:00 UTC

[jira] [Created] (SOLR-15577) Avoid {{ClusterState.getCollectionsMap()}} when not necessary

Andrzej Bialecki created SOLR-15577:
---------------------------------------

             Summary: Avoid {{ClusterState.getCollectionsMap()}} when not necessary
                 Key: SOLR-15577
                 URL: https://issues.apache.org/jira/browse/SOLR-15577
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Andrzej Bialecki
            Assignee: Andrzej Bialecki


I noticed that in a few places (eg. CollectionsHandler LIST_OP, ClusterStatus) when a simple list of available collections is needed the code invokes {{clusterState.getCollectionsMap()}}, which has to retrieve all collections information into memory. This should be replaced with something like {{clusterState.getCollectionStates().keySet()}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org