hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-18227 Fixed unit test hbase.coprocessor.TestCoprocessorMetrics#testRegionObserverAfterRegionClosed
Date Sat, 17 Jun 2017 03:19:45 GMT
Repository: hbase
Updated Branches:
  refs/heads/master cd478d156 -> b02d3d9ed


HBASE-18227 Fixed unit test hbase.coprocessor.TestCoprocessorMetrics#testRegionObserverAfterRegionClosed

Calling closeRegion() directly on remote server is not supported post-AMv2. Calling unassign()
on master

Signed-off-by: Michael Stack <stack@apache.org>


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

Branch: refs/heads/master
Commit: b02d3d9ed5e5408a37901e043f1c6d5ccb984f80
Parents: cd478d1
Author: Umesh Agashe <uagashe@cloudera.com>
Authored: Fri Jun 16 14:12:54 2017 -0700
Committer: Michael Stack <stack@apache.org>
Committed: Fri Jun 16 20:19:38 2017 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hbase/coprocessor/TestCoprocessorMetrics.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/b02d3d9e/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorMetrics.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorMetrics.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorMetrics.java
index 16bb6d9..e7b71ec 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorMetrics.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorMetrics.java
@@ -472,7 +472,7 @@ public class TestCoprocessorMetrics {
       // close one of the regions
       try (RegionLocator locator = connection.getRegionLocator(tableName)) {
         HRegionLocation loc = locator.getRegionLocation(foo);
-        admin.closeRegion(loc.getServerName(), loc.getRegionInfo());
+        admin.unassign(loc.getRegionInfo().getEncodedNameAsBytes(), true);
 
         HRegionServer server = UTIL.getMiniHBaseCluster().getRegionServer(loc.getServerName());
         UTIL.waitFor(30000,


Mime
View raw message