Github user anmolnar commented on the issue:

    https://github.com/apache/zookeeper/pull/700
  
    @hanm Not exactly.
    The test case is about reconfig the server to a port which is unavailable 
(blocked). Steps:
    1) Bind the server to "oldClientPort"
    2) Bind "newClientPort" with custom socket
    3) Reconfig the server to bind "newClientPort" - fails
    4) Check if "oldClientPort" has become available
    ...
    Step 4) fails, because of the aforementioned reason: reconfig fails to bind 
the port, throws exception, but exception handler doesn't close the selector, 
only the socket.
    I do things in swapped order: close the thread and socket first, then try 
to bind the new port.


---

Reply via email to