HBASE-11611 Addendum to fix hanging tests
This commit is contained in:
parent
3fdc6a2b72
commit
041a2ba948
|
@ -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 =
|
||||||
|
|
Loading…
Reference in New Issue