Ted Yu created SOLR-12949: ----------------------------- Summary: 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 Security Level: Public (Default Security Level. Issues are Public) Reporter: Ted Yu
{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 (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org