Skip to content
Browse files
HBASE-24161 [flakey test] locking.TestEntityLocks.testEntityLockTimeo…
…ut (#1477)

Signed-off-by: stack <>
  • Loading branch information
huaxiangsun committed Apr 10, 2020
1 parent c92dd28 commit ac4e94e868df5c421908d45d3f9ead1618fdace1
Showing 1 changed file with 4 additions and 1 deletion.
@@ -175,7 +175,10 @@ public void testEntityLockTimeout() throws Exception {
// Should get unlocked in next heartbeat i.e. after workerSleepTime. Wait 10x time to be sure.
assertTrue(waitLockTimeOut(lock, 10 * workerSleepTime));

// Works' run() returns, there is a small gap that the thread is still alive(os
// has not declare it is dead yet), so remove the following assertion.
// assertFalse(lock.getWorker().isAlive());
verify(abortable, times(1)).abort(any(), eq(null));

0 comments on commit ac4e94e

Please sign in to comment.