[
https://issues.apache.org/jira/browse/SOLR-12949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley resolved SOLR-12949.
---------------------------------
Resolution: Won't Fix
Closing as "Won't Fix" because IndexSizeTrigger does not exist anymore, nor is
there quite yet a replacement.
> metricTags Map in IndexSizeTrigger#run can be created outside the for loop
> --------------------------------------------------------------------------
>
> Key: SOLR-12949
> URL: https://issues.apache.org/jira/browse/SOLR-12949
> Project: Solr
> Issue Type: Improvement
> Reporter: Ted Yu
> Priority: Minor
>
> {code}
> for (String node : clusterState.getLiveNodes()) {
> Map<String, ReplicaInfo> metricTags = new HashMap<>();
> {code}
> The metricTags Map can be created outside the for loop.
> At the beginning of each iteration, metricTags Map should be cleared.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]