Skip to content

Commit

Permalink
Hive: Print db and table name while acquiring hive meta-store lock (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
krisdas authored Jun 22, 2022
1 parent e335086 commit 08c8764
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -539,11 +539,12 @@ long acquireLock() throws UnknownHostException, TException, InterruptedException
LockState newState = response.getState();
state.set(newState);
if (newState.equals(LockState.WAITING)) {
throw new WaitingForLockException("Waiting for lock.");
throw new WaitingForLockException(
String.format("Waiting for lock on table %s.%s", database, tableName));
}
} catch (InterruptedException e) {
Thread.interrupted(); // Clear the interrupt status flag
LOG.warn("Interrupted while waiting for lock.", e);
LOG.warn("Interrupted while waiting for lock on table {}.{}", database, tableName, e);
}
}, TException.class);
}
Expand Down

0 comments on commit 08c8764

Please sign in to comment.