浏览代码

HADOOP-6833. IPC leaks call parameters when exceptions thrown. Contributed by Todd Lipcon.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20@990003 13f79535-47bb-0310-9956-ffa450edef68
Eli Collins 14 年之前
父节点
当前提交
5fd6622ee7
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 3 0
      CHANGES.txt
  2. 1 0
      src/core/org/apache/hadoop/ipc/Client.java

+ 3 - 0
CHANGES.txt

@@ -47,6 +47,9 @@ Release 0.20.3 - Unreleased
     comparators in initializers, which are no longer automatically run
     in Java 6 when a class is referenced. (cutting via omalley)
 
+    HADOOP-6833. IPC leaks call parameters when exceptions thrown.
+    (Todd Lipcon via Eli Collins)
+
   IMPROVEMENTS
 
     MAPREDUCE-1407. Update javadoc in mapreduce.{Mapper,Reducer} to match

+ 1 - 0
src/core/org/apache/hadoop/ipc/Client.java

@@ -514,6 +514,7 @@ public class Client {
         } else if (state == Status.ERROR.state) {
           call.setException(new RemoteException(WritableUtils.readString(in),
                                                 WritableUtils.readString(in)));
+          calls.remove(id);
         } else if (state == Status.FATAL.state) {
           // Close the connection
           markClosed(new RemoteException(WritableUtils.readString(in),