HBASE-11611 Addendum to fix hanging tests

This commit is contained in:
Jimmy Xiang 2014-08-07 09:00:42 -07:00
parent 3fdc6a2b72
commit 041a2ba948
1 changed files with 9 additions and 7 deletions

View File

@ -1746,15 +1746,17 @@ public class HRegionServer extends HasThread implements
// to handle the region transition report at all.
if (code == TransitionCode.OPENED) {
Preconditions.checkArgument(hris != null && hris.length == 1);
try {
MetaTableAccessor.updateRegionLocation(shortCircuitConnection,
hris[0], serverName, openSeqNum);
return true;
} catch (IOException e) {
LOG.info("Failed to update meta", e);
return false;
if (!hris[0].isMetaRegion()) {
try {
MetaTableAccessor.updateRegionLocation(shortCircuitConnection,
hris[0], serverName, openSeqNum);
} catch (IOException e) {
LOG.info("Failed to update meta", e);
return false;
}
}
}
return true;
}
ReportRegionStateTransitionRequest.Builder builder =