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:
jxiang 2013-11-26 17:12:39 +00:00
parent 4e5847d331
commit 997d1bb727
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ public class HBaseAdmin implements Abortable, Closeable {
}
};
MetaScanner.metaScan(conf, connection, visitor, desc.getTableName());
if (actualRegCount.get() != numRegs) {
if (actualRegCount.get() < numRegs) {
if (tries == this.numRetries * this.retryLongerMultiplier - 1) {
throw new RegionOfflineException("Only " + actualRegCount.get() +
" of " + numRegs + " regions are online; retries exhausted.");