From e95dfd893134189c6cc017620c9bbc56a09c05f7 Mon Sep 17 00:00:00 2001 From: Aaron Myers Date: Thu, 6 Oct 2011 06:08:16 +0000 Subject: [PATCH] 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 --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index bcd48fc118f..192331ab741 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -54,6 +54,9 @@ Trunk (unreleased changes) HADOOP-7704. Reduce number of object created by JMXJsonServlet. (Devaraj K via Eric Yang) + HADOOP-7695. RPC.stopProxy can throw unintended exception while logging + error (atm) + Release 0.23.0 - Unreleased INCOMPATIBLE CHANGES diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java index 5256e5e9356..9500c9bfe96 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java @@ -489,7 +489,8 @@ public class RPC { } } else { 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."); } }