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. // to handle the region transition report at all.
if (code == TransitionCode.OPENED) { if (code == TransitionCode.OPENED) {
Preconditions.checkArgument(hris != null && hris.length == 1); Preconditions.checkArgument(hris != null && hris.length == 1);
try { if (!hris[0].isMetaRegion()) {
MetaTableAccessor.updateRegionLocation(shortCircuitConnection, try {
hris[0], serverName, openSeqNum); MetaTableAccessor.updateRegionLocation(shortCircuitConnection,
return true; hris[0], serverName, openSeqNum);
} catch (IOException e) { } catch (IOException e) {
LOG.info("Failed to update meta", e); LOG.info("Failed to update meta", e);
return false; return false;
}
} }
} }
return true;
} }
ReportRegionStateTransitionRequest.Builder builder = ReportRegionStateTransitionRequest.Builder builder =