hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmhs...@apache.org
Subject hbase git commit: HBASE-15959 Fix flaky test TestRegionServerMetrics.testMobMetrics (Huaxiang Sun and Jingcheng Du)
Date Thu, 09 Jun 2016 02:08:55 GMT
Repository: hbase
Updated Branches:
  refs/heads/master d9463bcce -> a7172d561


HBASE-15959 Fix flaky test TestRegionServerMetrics.testMobMetrics (Huaxiang Sun and Jingcheng
Du)


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

Branch: refs/heads/master
Commit: a7172d5611f33dde2566a4e140aeddc675a56f3a
Parents: d9463bc
Author: Jonathan M Hsieh <jmhsieh@apache.org>
Authored: Wed Jun 8 19:07:13 2016 -0700
Committer: Jonathan M Hsieh <jmhsieh@apache.org>
Committed: Wed Jun 8 19:07:13 2016 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/regionserver/TestRegionServerMetrics.java       | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/a7172d56/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerMetrics.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerMetrics.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerMetrics.java
index 06db468..89a82a7 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerMetrics.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerMetrics.java
@@ -451,6 +451,10 @@ public class TestRegionServerMetrics {
         admin.flush(tableName);
       }
       region.getTableDesc().getFamily(cf).setMobThreshold(0);
+
+      // closing the region forces the compaction.discharger to archive the compacted hfiles
+      ((HRegion) region).close();
+
       // metrics are reset by the region initialization
       ((HRegion) region).initialize();
       region.compact(true);


Mime
View raw message