HADOOP-6343. Log unexpected throwable object caught in RPC. Contributed by Jitendra Nath Pandey

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@832249 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Tsz-wo Sze 2009-11-03 01:30:11 +00:00
parent 408117957e
commit f5f95fe43a
2 changed files with 6 additions and 0 deletions

View File

@ -639,6 +639,9 @@ Release 0.21.0 - Unreleased
HADOOP-5107. Use Maven ant tasks to publish the subproject jars. HADOOP-5107. Use Maven ant tasks to publish the subproject jars.
(Giridharan Kesavan via omalley) (Giridharan Kesavan via omalley)
HADOOP-6343. Log unexpected throwable object caught in RPC. (Jitendra Nath
Pandey via szetszwo)
OPTIMIZATIONS OPTIMIZATIONS
HADOOP-5595. NameNode does not need to run a replicator to choose a HADOOP-5595. NameNode does not need to run a replicator to choose a

View File

@ -553,6 +553,9 @@ public Writable call(Class<?> protocol, Writable param, long receivedTime)
throw ioe; throw ioe;
} }
} catch (Throwable e) { } catch (Throwable e) {
if (!(e instanceof IOException)) {
LOG.error("Unexpected throwable object ", e);
}
IOException ioe = new IOException(e.toString()); IOException ioe = new IOException(e.toString());
ioe.setStackTrace(e.getStackTrace()); ioe.setStackTrace(e.getStackTrace());
throw ioe; throw ioe;