You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2017/07/19 23:21:53 UTC

[17/22] hbase git commit: HBASE-17772 IntegrationTestRSGroup won't run

HBASE-17772 IntegrationTestRSGroup won't run


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

Branch: refs/heads/HBASE-15631-branch-1
Commit: 1259fc80d8dc013f94b6150e3fbbd537fcd80fc7
Parents: 5cc50d4
Author: Andrew Purtell <ap...@apache.org>
Authored: Wed Jul 5 18:24:47 2017 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Wed Jul 19 16:21:10 2017 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/rsgroup/TestRSGroupsBase.java   | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/1259fc80/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/rsgroup/TestRSGroupsBase.java
----------------------------------------------------------------------
diff --git a/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/rsgroup/TestRSGroupsBase.java b/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/rsgroup/TestRSGroupsBase.java
index 5831696..52f576d 100644
--- a/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/rsgroup/TestRSGroupsBase.java
+++ b/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/rsgroup/TestRSGroupsBase.java
@@ -150,7 +150,14 @@ public abstract class TestRSGroupsBase {
     ClusterStatus status = TEST_UTIL.getHBaseClusterInterface().getClusterStatus();
     for(ServerName serverName : status.getServers()) {
       for(RegionLoad rl : status.getLoad(serverName).getRegionsLoad().values()) {
-        TableName tableName = HRegionInfo.getTable(rl.getName());
+        TableName tableName = null;
+        try {
+          tableName = HRegionInfo.getTable(rl.getName());
+        } catch (IllegalArgumentException e) {
+          LOG.warn("Failed parse a table name from regionname=" +
+              Bytes.toStringBinary(rl.getName()));
+          continue;
+        }
         if(!map.containsKey(tableName)) {
           map.put(tableName, new TreeMap<ServerName, List<String>>());
         }