Skip to content

Commit

Permalink
Remove workaround for JDK-8059299
Browse files Browse the repository at this point in the history
  • Loading branch information
oneonestar authored and wendigo committed Oct 24, 2024
1 parent af625c5 commit f9f6943
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,14 @@ public <V> Callable<V> wrap(Callable<V> callable)
catch (Exception e) {
if (e instanceof MetaException) {
metastoreExceptions.update(1);
// Need to throw here instead of falling through due to JDK-8059299
totalFailures.update(1);
throw e;
}

if (e instanceof TException) {
else if (e instanceof TException) {
if (e instanceof TBase) {
// This exception is an API response and not a server error
throw e;
}

thriftExceptions.update(1);
// Need to throw here instead of falling through due to JDK-8059299
totalFailures.update(1);
throw e;
}

totalFailures.update(1);
throw e;
}
Expand Down

0 comments on commit f9f6943

Please sign in to comment.