hadoop-zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r888163 - in /hadoop/zookeeper/trunk: CHANGES.txt src/java/main/org/apache/zookeeper/server/NIOServerCnxn.java
Date Mon, 07 Dec 2009 22:31:10 GMT
Author: mahadev
Date: Mon Dec  7 22:31:08 2009
New Revision: 888163

URL: http://svn.apache.org/viewvc?rev=888163&view=rev
Log:
ZOOKEEPER-611.  hudson build failiure (mahadev)

Modified:
    hadoop/zookeeper/trunk/CHANGES.txt
    hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/NIOServerCnxn.java

Modified: hadoop/zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/CHANGES.txt?rev=888163&r1=888162&r2=888163&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/CHANGES.txt (original)
+++ hadoop/zookeeper/trunk/CHANGES.txt Mon Dec  7 22:31:08 2009
@@ -151,6 +151,8 @@
   ZOOKEEPER-597. ASyncHammerTest is failing intermittently on hudson trunk 
   (take 5) (mahadev)
 
+  ZOOKEEPER-611.  hudson build failiure (mahadev)
+
 IMPROVEMENTS:
   ZOOKEEPER-473. cleanup junit tests to eliminate false positives due to
   "socket reuse" and failure to close client (phunt via mahadev)

Modified: hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/NIOServerCnxn.java
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/NIOServerCnxn.java?rev=888163&r1=888162&r2=888163&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/NIOServerCnxn.java (original)
+++ hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/NIOServerCnxn.java Mon
Dec  7 22:31:08 2009
@@ -77,17 +77,13 @@
                 LOG.error("Thread " + t + " died", e);
             }
         });
-        
         /**
          * this is to avoid the jvm bug:
          * NullPointerException in Selector.open()
          * http://bugs.sun.com/view_bug.do?bug_id=6427854
          */
-        try {
-        	Selector.open().close();
-        } catch(IOException ie) {
-        	LOG.error("Exception while opening a selector", ie);
-        }
+        System.setProperty("sun.nio.ch.bugLevel", 
+                System.getProperty("sun.nio.ch.bugLevel",""));
     }
 
     static public class Factory extends Thread {



Mime
View raw message