HBASE-9447 TestHBaseFsck could hang sometime

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1520441 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jxiang 2013-09-05 22:12:56 +00:00
parent 5c7d4bb6aa
commit 99b0f61b9d
1 changed files with 6 additions and 0 deletions

View File

@ -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<HRegionInfo, ServerName> regionServerPair
= getRegion(regionNameOrEncodedRegionName, ct);