You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2018/11/01 00:08:00 UTC
[jira] [Created] (SOLR-12949) metricTags Map in
IndexSizeTrigger#run can be created outside the for loop
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