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:
parent
5c7d4bb6aa
commit
99b0f61b9d
|
@ -2016,6 +2016,12 @@ public class HBaseAdmin implements Abortable, Closeable {
|
||||||
*/
|
*/
|
||||||
private byte[] getRegionName(
|
private byte[] getRegionName(
|
||||||
final byte[] regionNameOrEncodedRegionName) throws IOException {
|
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();
|
CatalogTracker ct = getCatalogTracker();
|
||||||
Pair<HRegionInfo, ServerName> regionServerPair
|
Pair<HRegionInfo, ServerName> regionServerPair
|
||||||
= getRegion(regionNameOrEncodedRegionName, ct);
|
= getRegion(regionNameOrEncodedRegionName, ct);
|
||||||
|
|
Loading…
Reference in New Issue