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

RemoveWatches wrongly removes the watcher if multiple watches exists on a path

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.0
    • Component/s: java client, server
    • Labels:
      None

      Description

      Consider a case where zkclient has added 2 data watchers(say 'w1' and 'w2') on '/node1'.

      Now user has removed w1, but this is deleting the 'CnxnWatcher' in ZK server against the "/node1" path. This will affect other data watchers(if any) of same client on same path. In our case 'w2' would not be notified.

      Note: please see the attached test case to understand more.

        Attachments

        1. ZOOKEEPER-1910.patch
          34 kB
          Rakesh R
        2. ZOOKEEPER-1910.patch
          28 kB
          Rakesh R
        3. ZOOKEEPER-1910.patch
          27 kB
          Rakesh R
        4. ZOOKEEPER-1910.patch
          2 kB
          Rakesh R

          Issue Links

            Activity

              People

              • Assignee:
                rakeshr Rakesh R
                Reporter:
                rakeshr Rakesh R
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: