You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by an...@apache.org on 2014/09/18 04:26:34 UTC

git commit: HBASE-11988 AC/VC system table create on postStartMaster fails too often in test.

Repository: hbase
Updated Branches:
  refs/heads/master 2e4218648 -> 6a5763673


HBASE-11988 AC/VC system table create on postStartMaster fails too often in test.


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

Branch: refs/heads/master
Commit: 6a5763673ce8bf414bc0a84d6ac9dfb8d51daa19
Parents: 2e42186
Author: anoopsjohn <an...@gmail.com>
Authored: Thu Sep 18 07:50:16 2014 +0530
Committer: anoopsjohn <an...@gmail.com>
Committed: Thu Sep 18 07:50:16 2014 +0530

----------------------------------------------------------------------
 .../test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/6a576367/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 e8d8762..05ffe84 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
@@ -2798,11 +2798,10 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility {
     TableName tableName = TableName.valueOf(table);
     long startWait = System.currentTimeMillis();
     waitTableAvailable(admin, table, timeoutMillis);
-    long remainder = System.currentTimeMillis() - startWait;
     while (!admin.isTableEnabled(tableName)) {
       assertTrue("Timed out waiting for table to become available and enabled " +
          Bytes.toStringBinary(table),
-         System.currentTimeMillis() - remainder < timeoutMillis);
+         System.currentTimeMillis() - startWait < timeoutMillis);
       Thread.sleep(200);
     }
     // Finally make sure all regions are fully open and online out on the cluster. Regions may be