HADOOP-10132. RPC#stopProxy() should log the class of proxy when IllegalArgumentException is encountered. Contributed by Ted Yu

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1546192 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uma Maheswara Rao G 2013-11-27 20:56:22 +00:00
parent 8df119da21
commit eed47f20ef
2 changed files with 4 additions and 1 deletions

View File

@ -469,6 +469,9 @@ Release 2.2.1 - UNRELEASED
HADOOP-9623 Update jets3t dependency to 0.9.0. (Amandeep Khurana via Colin HADOOP-9623 Update jets3t dependency to 0.9.0. (Amandeep Khurana via Colin
Patrick McCabe) Patrick McCabe)
HADOOP-10132. RPC#stopProxy() should log the class of proxy when IllegalArgumentException
is encountered (Ted yu via umamahesh)
OPTIMIZATIONS OPTIMIZATIONS
BUG FIXES BUG FIXES

View File

@ -634,7 +634,7 @@ public static void stopProxy(Object proxy) {
} catch (IOException e) { } catch (IOException e) {
LOG.error("Closing proxy or invocation handler caused exception", e); LOG.error("Closing proxy or invocation handler caused exception", e);
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
LOG.error("RPC.stopProxy called on non proxy.", e); LOG.error("RPC.stopProxy called on non proxy: class=" + proxy.getClass().getName(), e);
} }
// If you see this error on a mock object in a unit test you're // If you see this error on a mock object in a unit test you're