HBASE-18449 Fix client.locking.TestEntityLocks
This commit is contained in:
parent
fb80a8e886
commit
164df6bdd9
|
@ -192,6 +192,9 @@ public class TestEntityLocks {
|
||||||
lock.requestLock();
|
lock.requestLock();
|
||||||
lock.await();
|
lock.await();
|
||||||
assertTrue(waitLockTimeOut(lock, 100 * workerSleepTime));
|
assertTrue(waitLockTimeOut(lock, 100 * workerSleepTime));
|
||||||
|
while (lock.getWorker().isAlive()) {
|
||||||
|
TimeUnit.MILLISECONDS.sleep(100);
|
||||||
|
}
|
||||||
verify(abortable, times(1)).abort(any(), isA(HBaseIOException.class));
|
verify(abortable, times(1)).abort(any(), isA(HBaseIOException.class));
|
||||||
assertFalse(lock.getWorker().isAlive());
|
assertFalse(lock.getWorker().isAlive());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue