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

client watcher objects can lose events

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • java client
    • None
    • Reviewed

    Description

      if a single watcher (A) is registered on a single node for both a getdata and exists watch the second watch event may be lost:

      1) getdata("node", A)
      2) setdata("node"...)
      3) exists("node", A)
      4) delete("node"...)

      if watch events for 2 is processed on the client (zookeeper.java, zkwatcher) after 3 completes then the zkwatcher process event method will clear the watch and the subsequent operation's (4) event will be ignored

      Attachments

        1. ZOOKEEPER-137.patch
          25 kB
          Patrick D. Hunt

        Issue Links

          Activity

            People

              phunt Patrick D. Hunt
              phunt Patrick D. Hunt
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: