HBASE-7436 Improve stack trace info dumped by ForeignExceptionSnare#rethrowException
git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/hbase-7290@1445800 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
03cf01614f
commit
4286acdb2b
|
@ -87,7 +87,9 @@ public class ForeignExceptionDispatcher implements ForeignExceptionListener, For
|
|||
@Override
|
||||
public void rethrowException() throws ForeignException {
|
||||
if (exception != null) {
|
||||
throw exception;
|
||||
// This gets the stack where this is caused, (instead of where it was deserialized).
|
||||
// This which is much more useful for debugging
|
||||
throw new ForeignException(exception.getSource(), exception.getCause());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue