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

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

    XMLWordPrintableJSON

Details

    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 Radhakrishnan
        2. ZOOKEEPER-1910.patch
          28 kB
          Rakesh Radhakrishnan
        3. ZOOKEEPER-1910.patch
          27 kB
          Rakesh Radhakrishnan
        4. ZOOKEEPER-1910.patch
          2 kB
          Rakesh Radhakrishnan

        Issue Links

          Activity

            People

              rakeshr Rakesh Radhakrishnan
              rakeshr Rakesh Radhakrishnan
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: