From 997d1bb7271ae76c8b26fc87a9dd45e4d0853281 Mon Sep 17 00:00:00 2001 From: jxiang Date: Tue, 26 Nov 2013 17:12:39 +0000 Subject: [PATCH] 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 --- .../main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java index fcdfc8eadde..2e7db2cf773 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java @@ -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.");