HBASE-10026 HBaseAdmin#createTable could fail if region splits too fast
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1545737 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4e5847d331
commit
997d1bb727
|
@ -516,7 +516,7 @@ public class HBaseAdmin implements Abortable, Closeable {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
MetaScanner.metaScan(conf, connection, visitor, desc.getTableName());
|
MetaScanner.metaScan(conf, connection, visitor, desc.getTableName());
|
||||||
if (actualRegCount.get() != numRegs) {
|
if (actualRegCount.get() < numRegs) {
|
||||||
if (tries == this.numRetries * this.retryLongerMultiplier - 1) {
|
if (tries == this.numRetries * this.retryLongerMultiplier - 1) {
|
||||||
throw new RegionOfflineException("Only " + actualRegCount.get() +
|
throw new RegionOfflineException("Only " + actualRegCount.get() +
|
||||||
" of " + numRegs + " regions are online; retries exhausted.");
|
" of " + numRegs + " regions are online; retries exhausted.");
|
||||||
|
|
Loading…
Reference in New Issue