From 1b802bb6905fb1b59fe57a805ceeb66bdbba1357 Mon Sep 17 00:00:00 2001
From: Eli Collins <eli@cloudera.com>
Date: Thu, 26 Aug 2010 20:15:54 -0700
Subject: [PATCH] HADOOP-6833. IPC leaks call parameters when exceptions thrown.

Reason: Bug
Author: Todd Lipcon
Ref: CDH-2063
---
 src/core/org/apache/hadoop/ipc/Client.java |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/core/org/apache/hadoop/ipc/Client.java b/src/core/org/apache/hadoop/ipc/Client.java
index a053d25..cd802a0 100644
--- a/src/core/org/apache/hadoop/ipc/Client.java
+++ b/src/core/org/apache/hadoop/ipc/Client.java
@@ -582,6 +582,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), 
-- 
1.6.0.4

