فهرست منبع

commit 6f095fb8d83ce1d8298de66da3f43cf8888abfad
Author: Devaraj Das <ddas@yahoo-inc.com>
Date: Fri Apr 23 09:36:33 2010 -0700

HADOOP:6718 from https://issues.apache.org/jira/secure/attachment/12442614/6718-bp20.patch

+++ b/YAHOO-CHANGES.txt
+ HADOOP-6718. Fixes a problem to do with clients not closing RPC
+ connections on a SASL failure. (ddas)
+


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077422 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 سال پیش
والد
کامیت
1cba9fb4da
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 6 1
      src/core/org/apache/hadoop/ipc/Client.java

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

@@ -446,7 +446,12 @@ public class Client {
           if (ticket.doAs(new PrivilegedExceptionAction<Boolean>() {
             @Override
             public Boolean run() throws IOException {
-              return setupSaslConnection(in2, out2);
+              try {
+                return setupSaslConnection(in2, out2);
+              } catch (IOException ie) {
+                handleConnectionFailure(1, 1, ie);
+                throw ie;
+              }
             }
           })) {
             // Sasl connect is successful. Let's set up Sasl i/o streams.