From 99b0f61b9d66a33fc3fcd9cdff712c3d5b854ee9 Mon Sep 17 00:00:00 2001 From: jxiang Date: Thu, 5 Sep 2013 22:12:56 +0000 Subject: [PATCH] HBASE-9447 TestHBaseFsck could hang sometime git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1520441 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/hadoop/hbase/client/HBaseAdmin.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java index 1ae01280f11..08f88d21f10 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java @@ -2016,6 +2016,12 @@ public class HBaseAdmin implements Abortable, Closeable { */ private byte[] getRegionName( final byte[] regionNameOrEncodedRegionName) throws IOException { + if (Bytes.equals(regionNameOrEncodedRegionName, + HRegionInfo.FIRST_META_REGIONINFO.getRegionName()) + || Bytes.equals(regionNameOrEncodedRegionName, + HRegionInfo.FIRST_META_REGIONINFO.getEncodedNameAsBytes())) { + return HRegionInfo.FIRST_META_REGIONINFO.getRegionName(); + } CatalogTracker ct = getCatalogTracker(); Pair regionServerPair = getRegion(regionNameOrEncodedRegionName, ct);