lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-12949) metricTags Map in IndexSizeTrigger#run can be created outside the for loop
Date Thu, 01 Nov 2018 00:08:00 GMT
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message