hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jxi...@apache.org
Subject svn commit: r1520442 - /hbase/branches/0.96/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
Date Thu, 05 Sep 2013 22:13:33 GMT
Author: jxiang
Date: Thu Sep  5 22:13:32 2013
New Revision: 1520442

URL: http://svn.apache.org/r1520442
Log:
HBASE-9447 TestHBaseFsck could hang sometime

Modified:
    hbase/branches/0.96/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java

Modified: hbase/branches/0.96/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.96/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java?rev=1520442&r1=1520441&r2=1520442&view=diff
==============================================================================
--- hbase/branches/0.96/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
(original)
+++ hbase/branches/0.96/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
Thu Sep  5 22:13:32 2013
@@ -2016,6 +2016,12 @@ public class HBaseAdmin implements Abort
    */
   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<HRegionInfo, ServerName> regionServerPair
       = getRegion(regionNameOrEncodedRegionName, ct);



Mime
View raw message