Github user anmolnar commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/700#discussion_r235013286
  
    --- Diff: 
zookeeper-server/src/main/java/org/apache/zookeeper/server/NIOServerCnxnFactory.java
 ---
    @@ -209,6 +209,8 @@ public void run() {
                             LOG.warn("Ignoring unexpected exception", e);
                         }
                     }
    +            } catch (IOException e) {
    +                LOG.error("Exception when running accept thread. Unable to 
register selector?", e);
    --- End diff --
    
    3.4 doesn't have this issue, because the selector is explicitly closed in 
the shutdown method. In 3.5 and master only the owning thread (accept) is able 
to close it, but it won't, if it doesn't even started.
    
    I'll do the test that you suggested, however I'm not sure how port binding 
is related to selector registration. 


---

Reply via email to