You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Timothy Potter (Jira)" <ji...@apache.org> on 2021/09/07 17:41:01 UTC

[jira] [Updated] (SOLR-15577) Avoid ClusterState.getCollectionsMap() when not necessary

     [ https://issues.apache.org/jira/browse/SOLR-15577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Potter updated SOLR-15577:
----------------------------------
    Fix Version/s:     (was: 8.10)

> 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
>            Priority: Major
>
> 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