hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chia7...@apache.org
Subject hbase git commit: HBASE-18449 Fix client.locking.TestEntityLocks
Date Wed, 26 Jul 2017 12:29:36 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-2 fb80a8e88 -> 164df6bdd


HBASE-18449 Fix client.locking.TestEntityLocks


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

Branch: refs/heads/branch-2
Commit: 164df6bdd975b8daae064135aa579f3caecc1ab1
Parents: fb80a8e
Author: Chia-Ping Tsai <chia7712@gmail.com>
Authored: Wed Jul 26 20:29:14 2017 +0800
Committer: Chia-Ping Tsai <chia7712@gmail.com>
Committed: Wed Jul 26 20:29:14 2017 +0800

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/client/locking/TestEntityLocks.java   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/164df6bd/hbase-server/src/test/java/org/apache/hadoop/hbase/client/locking/TestEntityLocks.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/locking/TestEntityLocks.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/locking/TestEntityLocks.java
index 904c36d..4ac3654 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/locking/TestEntityLocks.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/locking/TestEntityLocks.java
@@ -192,6 +192,9 @@ public class TestEntityLocks {
     lock.requestLock();
     lock.await();
     assertTrue(waitLockTimeOut(lock, 100 * workerSleepTime));
+    while (lock.getWorker().isAlive()) {
+      TimeUnit.MILLISECONDS.sleep(100);
+    }
     verify(abortable, times(1)).abort(any(), isA(HBaseIOException.class));
     assertFalse(lock.getWorker().isAlive());
   }


Mime
View raw message