ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-794

Callbacks are not invoked when the client is closed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker 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.

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development