Skip to content

Commit

Permalink
HBASE-21050 Exclusive lock may be held by a SUCCESS state procedure f…
Browse files Browse the repository at this point in the history
…orever

Signed-off-by: Michael Stack <stack@apache.org>
Signed-off-by: zhangduo <zhangduo@apache.org>
  • Loading branch information
Allan Yang authored and saintstack committed Aug 15, 2018
1 parent 49ae854 commit 159435e
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -895,6 +895,11 @@ final void restoreLock(TEnvironment env) {
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;
Expand Down

0 comments on commit 159435e

Please sign in to comment.