HADOOP-7695. RPC.stopProxy can throw unintended exception while logging error (atm)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1179512 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Aaron Myers 2011-10-06 06:08:16 +00:00
parent 14569ab482
commit e95dfd8931
2 changed files with 5 additions and 1 deletions

View File

@ -54,6 +54,9 @@ Trunk (unreleased changes)
HADOOP-7704. Reduce number of object created by JMXJsonServlet. HADOOP-7704. Reduce number of object created by JMXJsonServlet.
(Devaraj K via Eric Yang) (Devaraj K via Eric Yang)
HADOOP-7695. RPC.stopProxy can throw unintended exception while logging
error (atm)
Release 0.23.0 - Unreleased Release 0.23.0 - Unreleased
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -489,7 +489,8 @@ public static void stopProxy(Object proxy) {
} }
} else { } else {
LOG.error("Could not get invocation handler " + invocationHandler + LOG.error("Could not get invocation handler " + invocationHandler +
" for proxy " + proxy + ", or invocation handler is not closeable."); " for proxy class " + (proxy == null ? null : proxy.getClass()) +
", or invocation handler is not closeable.");
} }
} }