lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject lucene-solr:jira/solr-9959: SOLR-9959 Fix a few bugs in conversion methods.
Date Thu, 06 Apr 2017 13:20:34 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/jira/solr-9959 7c576a7ce -> a8d4e677c


SOLR-9959 Fix a few bugs in conversion methods.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/a8d4e677
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/a8d4e677
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/a8d4e677

Branch: refs/heads/jira/solr-9959
Commit: a8d4e677c21c193274162e005335361f402c24b8
Parents: 7c576a7
Author: Andrzej Bialecki <ab@apache.org>
Authored: Thu Apr 6 15:19:56 2017 +0200
Committer: Andrzej Bialecki <ab@apache.org>
Committed: Thu Apr 6 15:19:56 2017 +0200

----------------------------------------------------------------------
 solr/core/src/java/org/apache/solr/util/stats/MetricUtils.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a8d4e677/solr/core/src/java/org/apache/solr/util/stats/MetricUtils.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/util/stats/MetricUtils.java b/solr/core/src/java/org/apache/solr/util/stats/MetricUtils.java
index 986d27f..2900857 100644
--- a/solr/core/src/java/org/apache/solr/util/stats/MetricUtils.java
+++ b/solr/core/src/java/org/apache/solr/util/stats/MetricUtils.java
@@ -353,10 +353,10 @@ public class MetricUtils {
       consumer.accept(name + "." + MEAN, snapshot.getMean());
     } else {
       Map<String, Object> response = new LinkedHashMap<>();
-      consumer.accept(name, response);
       response.put("count", histogram.getCount());
       // non-time based values
       addSnapshot(response, snapshot, false);
+      consumer.accept(name, response);
     }
   }
 
@@ -397,7 +397,6 @@ public class MetricUtils {
       consumer.accept(name + ".meanRate", timer.getMeanRate());
     } else {
       Map<String, Object> response = new LinkedHashMap<>();
-      consumer.accept(name, response);
       response.put("count", timer.getCount());
       response.put("meanRate", timer.getMeanRate());
       response.put("1minRate", timer.getOneMinuteRate());
@@ -407,6 +406,7 @@ public class MetricUtils {
         // time-based values in nanoseconds
         addSnapshot(response, timer.getSnapshot(), true);
       }
+      consumer.accept(name, response);
     }
   }
 


Mime
View raw message