Skip to content

Commit

Permalink
removing shutdown (always throws an exception) and fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
patduin committed Nov 27, 2023
1 parent a967527 commit 55cb714
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,15 +246,6 @@ public void close() {
return;
}
isConnected = false;
try {
if (client != null) {
client.shutdown();
}
} catch (TException e) {
LOG.debug("Unable to shutdown metastore client. Will try closing transport directly.", e);
}
// Transport would have got closed via client.shutdown(), so we don't need this, but
// just in case, we make this call.
if ((transport != null) && transport.isOpen()) {
transport.close();
transport = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
} catch (Throwable t) {
log
.warn(
"Unable to invoke compatibility for metastore client method {}. Will rethrow original exception, logging exception from invocation handler",
method.getName(), t);
"Unable to invoke compatibility for metastore client method "+method.getName()+". Will rethrow original exception, logging exception from invocation handler",
t);
}
throw delegateException.getCause();
}
Expand Down

0 comments on commit 55cb714

Please sign in to comment.