infraio commented on a change in pull request #264: HBASE-22316 Record the
stack trace for current thread in FutureUtils.get
URL: https://github.com/apache/hbase/pull/264#discussion_r288612784
##########
File path:
hbase-common/src/main/java/org/apache/hadoop/hbase/util/FutureUtils.java
##########
@@ -132,9 +165,7 @@ public static Throwable
unwrapCompletionException(Throwable error) {
} catch (InterruptedException e) {
throw (IOException) new InterruptedIOException().initCause(e);
} catch (ExecutionException e) {
- Throwable cause = e.getCause();
- Throwables.propagateIfPossible(cause, IOException.class);
- throw new IOException(cause);
+ throw rethrow(e);
Review comment:
rethrow(e)?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services