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:
Jonathan Hsieh 2013-02-13 18:22:42 +00:00
parent 03cf01614f
commit 4286acdb2b
1 changed files with 3 additions and 1 deletions

View File

@ -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());
}
}