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

Watch event isn't handled correctly when a client reestablish to a server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.3.6, 3.4.5
    • 3.4.6, 3.5.0
    • server
    • None

    Description

      When a client reestablish to a server, it will send the watches which have not been triggered. But the code in DataTree does not handle it correctly.

      It is obvious, we just do not notice it

      scenario:
      1) Client a set a data watch on /d, then disconnect, client b delete /d and create it again. When client a reestablish to zk, it will receive a NodeCreated rather than a NodeDataChanged.
      2) Client a set a exists watch on /e(not exist), then disconnect, client b create /e. When client a reestablish to zk, it will receive a NodeDataChanged rather than a NodeCreated.

      Attachments

        1. ZOOKEEPER-1667-trunk.patch
          13 kB
          Flavio Paiva Junqueira
        2. ZOOKEEPER-1667-b3.4.patch
          13 kB
          Flavio Paiva Junqueira
        3. ZOOKEEPER-1667-b3.4.patch
          12 kB
          Flavio Paiva Junqueira
        4. ZOOKEEPER-1667-r34.patch
          10 kB
          Jacky007
        5. ZOOKEEPER-1667.patch
          10 kB
          Jacky007

        Issue Links

          Activity

            People

              fpj Flavio Paiva Junqueira
              fanster.z Jacky007
              Votes:
              1 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: