ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1237

ERRORs being logged when queued responses are sent after socket has closed.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.4, 3.4.0, 3.5.0
    • Fix Version/s: 3.5.1
    • Component/s: server
    • Labels:
      None

      Description

      After applying ZOOKEEPER-1049 to 3.3.3 (I believe the same problem exists in 3.4/3.5 but haven't tested this) I'm seeing the following exception more frequently:

      Oct 19, 1:31:53 PM ERROR
      Unexpected Exception:
      java.nio.channels.CancelledKeyException
      at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:55)
      at sun.nio.ch.SelectionKeyImpl.interestOps(SelectionKeyImpl.java:59)
      at org.apache.zookeeper.server.NIOServerCnxn.sendBuffer(NIOServerCnxn.java:418)
      at org.apache.zookeeper.server.NIOServerCnxn.sendResponse(NIOServerCnxn.java:1509)
      at org.apache.zookeeper.server.FinalRequestProcessor.processRequest(FinalRequestProcessor.java:367)
      at org.apache.zookeeper.server.quorum.CommitProcessor.run(CommitProcessor.java:73)
      

      This is a long standing problem where we try to send a response after the socket has been closed. Prior to ZOOKEEPER-1049 this issues happened much less frequently (2 sec linger), but I believe it was possible. The timing window is just wider now.

        Activity

        Patrick Hunt created issue -
        Mahadev konar made changes -
        Field Original Value New Value
        Fix Version/s 3.4.1 [ 12318650 ]
        Fix Version/s 3.4.0 [ 12314469 ]
        Patrick Hunt made changes -
        Fix Version/s 3.3.5 [ 12319081 ]
        Fix Version/s 3.3.4 [ 12316276 ]
        Mahadev konar made changes -
        Fix Version/s 3.4.1 [ 12318650 ]
        Fix Version/s 3.3.5 [ 12319081 ]
        Chris Seawood made changes -
        Attachment zookeeper-3.4.5-ZK1237.patch [ 12596704 ]
        Michi Mutsuzaki made changes -
        Attachment ZOOKEEPER-1677.patch [ 12646151 ]
        Michi Mutsuzaki made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Michi Mutsuzaki made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Michi Mutsuzaki made changes -
        Attachment ZOOKEEPER-1677.patch [ 12646151 ]
        Patrick Hunt made changes -
        Fix Version/s 3.5.1 [ 12326786 ]
        Fix Version/s 3.5.0 [ 12316644 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Patrick Hunt
          • Votes:
            5 Vote for this issue
            Watchers:
            21 Start watching this issue

            Dates

            • Created:
              Updated:

              Development