Skip to content

Commit

Permalink
[fix](cloud-mow) print the correct lock owner when geting lock timeout (
Browse files Browse the repository at this point in the history
apache#42063)

now the lock owner is wrong, this pr fix it.
  • Loading branch information
hust-hhb authored Oct 22, 2024
1 parent babd579 commit ea7544c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public boolean tryCommitLock(long timeout, TimeUnit unit) {
boolean res = this.commitLock.tryLock(timeout, unit);
if (!res && unit.toSeconds(timeout) >= 1) {
LOG.warn("Failed to try table {}'s cloud commit lock. timeout {} {}. Current owner: {}",
name, timeout, unit.name(), rwLock.getOwner());
name, timeout, unit.name(), this.commitLock.getOwner());
}
return res;
} catch (InterruptedException e) {
Expand Down

0 comments on commit ea7544c

Please sign in to comment.