From 443340e181d01e6b300c6c9b5c13494de1e14fc6 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Sat, 13 Nov 2010 22:46:08 +0000 Subject: [PATCH] HBASE-3233 Fix Long Running Stats git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1034899 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 1 + .../hadoop/hbase/metrics/PersistentMetricsTimeVaryingRate.java | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 205e5e6ea29..9b9dc22155c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -678,6 +678,7 @@ Release 0.90.0 - Unreleased HBASE-3222 Regionserver region listing in UI is no longer ordered HBASE-3221 Race between splitting and disabling HBASE-3224 NPE in KeyValue$KVComparator.compare when compacting + HBASE-3233 Fix Long Running Stats IMPROVEMENTS diff --git a/src/main/java/org/apache/hadoop/hbase/metrics/PersistentMetricsTimeVaryingRate.java b/src/main/java/org/apache/hadoop/hbase/metrics/PersistentMetricsTimeVaryingRate.java index 7f4fd3e6f91..bf6367d96e3 100644 --- a/src/main/java/org/apache/hadoop/hbase/metrics/PersistentMetricsTimeVaryingRate.java +++ b/src/main/java/org/apache/hadoop/hbase/metrics/PersistentMetricsTimeVaryingRate.java @@ -82,6 +82,7 @@ public class PersistentMetricsTimeVaryingRate extends MetricsTimeVaryingRate { if (reset) { // use the previous avg as our starting min/max/avg super.inc(getPreviousIntervalAverageTime()); + reset = false; } else { // maintain the stats that pushMetric() cleared maintainStats();