Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-794

Callbacks are not invoked when the client is closed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.3.2, 3.4.0
    • Component/s: java client
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      I noticed that ZooKeeper has different behaviors when calling synchronous or asynchronous actions on a closed ZooKeeper client.
      Actually a synchronous call will throw a "session expired" exception while an asynchronous call will do nothing. No exception, no callback invocation.

      Actually, even if the EventThread receives the Packet with the session expired err code, the packet is never processed since the thread has been killed by the ventOfDeath. So the call back is not invoked.

        Attachments

        1. ZOOKEEPER-794.patch.txt
          13 kB
          Alexis Midon
        2. ZOOKEEPER-794.txt
          13 kB
          Alexis Midon
        3. ZOOKEEPER-794_2.patch
          15 kB
          Benjamin Reed
        4. ZOOKEEPER-794_3.patch
          5 kB
          Alexis Midon
        5. ZOOKEEPER-794_4.patch.txt
          16 kB
          Alexis Midon
        6. ZOOKEEPER-794_5.patch.txt
          16 kB
          Alexis Midon
        7. ZOOKEEPER-794_5_br33.patch
          17 kB
          Patrick Hunt

          Issue Links

            Activity

              People

              • Assignee:
                alexismidon Alexis Midon
                Reporter:
                alexismidon Alexis Midon
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: