Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhang10 committed Dec 2, 2024
1 parent d1cd3df commit f186d03
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,9 @@ protected long acquireLock() throws UnknownHostException, TException, Interrupte
.run(
id -> {
try {
LOG.warn("In thread {}, trying to call hmsclient.checkLock() on table {}", Thread.currentThread(), fullName);
LockResponse response = metaClients.run(client -> client.checkLock(id));
LOG.warn("In thread {}, hmsclient.checkLock() finished on table {}", Thread.currentThread(), fullName);
LockState newState = response.getState();
state.set(newState);
if (newState.equals(LockState.WAITING)) {
Expand Down

0 comments on commit f186d03

Please sign in to comment.