ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1105

c client zookeeper_close not send CLOSE_OP request to server

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.2, 3.4.3
    • Fix Version/s: 3.5.0
    • Component/s: c client
    • Labels:
      None

      Description

      in zookeeper_close function, do adaptor_finish before send CLOSE_OP request to server
      so the CLOSE_OP request can not be sent to server

      in server zookeeper.log have many
      2011-06-22 00:23:02,323 - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@634] - EndOfStreamException: Unable to read additional data from client sessionid 0x1305970d66d2224, likely client has closed socket
      2011-06-22 00:23:02,324 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1435] - Closed socket connection for client /10.250.8.123:60257 which had sessionid 0x1305970d66d2224
      2011-06-22 00:23:02,325 - ERROR [CommitProcessor:1:NIOServerCnxn@445] - 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)

      and java client not have this problem

      1. ZOOKEEPER-1105v1.patch
        1 kB
        lincoln.lee
      2. ZOOKEEPER-1105.patch
        1 kB
        lincoln.lee
      3. zklog.txt
        13 kB
        Diego Ongaro
      4. zktest.c
        2 kB
        Diego Ongaro
      5. zktest.java
        2 kB
        Diego Ongaro

        Activity

        Michi Mutsuzaki made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        lincoln.lee made changes -
        Status Reopened [ 4 ] Patch Available [ 10002 ]
        lincoln.lee made changes -
        Attachment ZOOKEEPER-1105v1.patch [ 12546985 ]
        Michi Mutsuzaki made changes -
        Fix Version/s 3.4.4 [ 12319841 ]
        Michi Mutsuzaki made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Michi Mutsuzaki made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Michi Mutsuzaki made changes -
        Fix Version/s 3.3.7 [ 12321882 ]
        Mahadev konar made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Patrick Hunt made changes -
        Fix Version/s 3.3.2 [ 12315108 ]
        Fix Version/s 3.4.3 [ 12319288 ]
        Fix Version/s 3.4.4 [ 12319841 ]
        Fix Version/s 3.5.0 [ 12316644 ]
        Fix Version/s 3.3.7 [ 12321882 ]
        lincoln.lee made changes -
        Fix Version/s 3.4.3 [ 12319288 ]
        Fix Version/s 3.3.2 [ 12315108 ]
        Patrick Hunt made changes -
        Assignee Patrick Hunt [ phunt ] lincoln.lee [ lincoln.86xy ]
        lincoln.lee made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        lincoln.lee made changes -
        Attachment ZOOKEEPER-1105.patch [ 12533279 ]
        lincoln.lee made changes -
        Attachment ZOOKEEPER-1105.patch [ 12532172 ]
        lincoln.lee made changes -
        Affects Version/s 3.4.3 [ 12319288 ]
        lincoln.lee made changes -
        Attachment ZOOKEEPER-1105.patch [ 12532172 ]
        Diego Ongaro made changes -
        Assignee Diego Ongaro [ ongardie ] Patrick Hunt [ phunt ]
        Patrick Hunt made changes -
        Assignee jiang guangran [ rpggpr ] Diego Ongaro [ ongardie ]
        Patrick Hunt made changes -
        Assignee jiang guangran [ rpggpr ]
        Diego Ongaro made changes -
        Attachment zklog.txt [ 12506385 ]
        Diego Ongaro made changes -
        Attachment zktest.c [ 12506384 ]
        Diego Ongaro made changes -
        Attachment zktest.java [ 12506383 ]
        jiang guangran made changes -
        Summary zookeeper_close not send CLOSE_OP request to server c client zookeeper_close not send CLOSE_OP request to server
        jiang guangran made changes -
        Field Original Value New Value
        Summary zookeeper_close can send CLOSE_OP request to server zookeeper_close not send CLOSE_OP request to server
        jiang guangran created issue -

          People

          • Assignee:
            lincoln.lee
            Reporter:
            jiang guangran
          • Votes:
            2 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

            • Created:
              Updated:

              Development