hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r533223 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/ipc/RPC.java
Date Fri, 27 Apr 2007 21:07:41 GMT
Author: cutting
Date: Fri Apr 27 14:07:40 2007
New Revision: 533223

URL: http://svn.apache.org/viewvc?view=rev&rev=533223
Log:
HADOOP-1299.  Fix so that RPC will restart after RPC.stopClient() has been called.  Contributed
by Michael Stack.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/ipc/RPC.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=533223&r1=533222&r2=533223
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Fri Apr 27 14:07:40 2007
@@ -285,6 +285,9 @@
 84. HADOOP-1294.  Fix unchecked warnings in main Hadoop code under 
     Java 6.  (tomwhite)
 
+85. HADOOP-1299.  Fix so that RPC will restart after RPC.stopClient()
+    has been called.  (Michael Stack via cutting)
+
 
 Release 0.12.3 - 2007-04-06
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/ipc/RPC.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/ipc/RPC.java?view=diff&rev=533223&r1=533222&r2=533223
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/ipc/RPC.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/ipc/RPC.java Fri Apr 27 14:07:40 2007
@@ -144,8 +144,10 @@
    * Stop all RPC client connections
    */
   public static synchronized void stopClient(){
-    if (CLIENT != null)
+    if (CLIENT != null) {
       CLIENT.stop();
+      CLIENT = null;
+    }
   }
 
   private static class Invoker implements InvocationHandler {



Mime
View raw message