hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From syuanji...@apache.org
Subject hbase git commit: HBASE-15636 hard coded wait time out value in HBaseTestingUtility#waitUntilAllRegionsAssigned might cause test failure (Stephen Yuan Jiang)
Date Tue, 12 Apr 2016 23:52:32 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.1 e3983ac45 -> b6a5a5164


HBASE-15636 hard coded wait time out value in HBaseTestingUtility#waitUntilAllRegionsAssigned
might cause test failure (Stephen Yuan Jiang)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/b6a5a516
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/b6a5a516
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/b6a5a516

Branch: refs/heads/branch-1.1
Commit: b6a5a5164db6b0716107351c2a51154a034edcf2
Parents: e3983ac
Author: Stephen Yuan Jiang <syuanjiangdev@gmail.com>
Authored: Tue Apr 12 16:46:39 2016 -0700
Committer: Stephen Yuan Jiang <syuanjiangdev@gmail.com>
Committed: Tue Apr 12 16:50:10 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/HBaseTestingUtility.java     | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/b6a5a516/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
index 6d93c58..43e4a09 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
@@ -3337,14 +3337,17 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility
{
 
   /**
    * Wait until all regions for a table in hbase:meta have a non-empty
-   * info:server, up to 60 seconds. This means all regions have been deployed,
+   * info:server, up to a configuable timeout value (default is 60 seconds)
+   * This means all regions have been deployed,
    * master has been informed and updated hbase:meta with the regions deployed
    * server.
    * @param tableName the table name
    * @throws IOException
    */
   public void waitUntilAllRegionsAssigned(final TableName tableName) throws IOException {
-    waitUntilAllRegionsAssigned(tableName, 60000);
+    waitUntilAllRegionsAssigned(
+      tableName,
+      this.conf.getLong("hbase.client.sync.wait.timeout.msec", 60000));
   }
 
   /**


Mime
View raw message