Apache9 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_r288630601
##########
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:
There will be a compile error if you do not have a return or throw statement
in this block...
----------------------------------------------------------------
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