HBASE-21050 Exclusive lock may be held by a SUCCESS state procedure forever
Signed-off-by: Michael Stack <stack@apache.org> Signed-off-by: zhangduo <zhangduo@apache.org>
This commit is contained in:
parent
49ae8549cf
commit
159435ee40
|
@ -895,6 +895,11 @@ public abstract class Procedure<TEnvironment> implements Comparable<Procedure<TE
|
|||
return;
|
||||
}
|
||||
|
||||
if (isFinished()) {
|
||||
LOG.debug("{} is already finished, skip acquiring lock.", this);
|
||||
return;
|
||||
}
|
||||
|
||||
LOG.debug("{} held the lock before restarting, call acquireLock to restore it.", this);
|
||||
LockState state = acquireLock(env);
|
||||
assert state == LockState.LOCK_ACQUIRED;
|
||||
|
|
Loading…
Reference in New Issue