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

Watch recovery after disconnection when connection string contains a prefix

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.3.4, 3.4.0
    • Component/s: java client
    • Labels:
      None
    • Environment:

      Windows 32 bits

    • Hadoop Flags:
      Reviewed
    • Tags:
      disconnected watch

      Description

      Let's say you're using connection string "127.0.0.1:2182/foo".
      1) put a childrenchanged watch on relative / (that is, on absolute path /foo)
      2) stop the zk server
      3) start the zk server
      4) at this point, the client recovers the connection, and should have put back a watch on relative path /, but instead the client puts a watch on the absolute path /

      • if some other client adds or removes a node under /foo, nothing will happen
      • if some other client adds or removes a node under /, then you will get an error from the zk client library (string operation error)

        Attachments

        1. ZOOKEEPER-961.patch
          16 kB
          Matthias Spycher
        2. ZOOKEEPER-961b.patch
          14 kB
          Mahadev konar
        3. ZOOKEEPER-961.patch
          50 kB
          Thomas Koch
        4. ZOOKEEPER-961b.patch
          14 kB
          Matthias Spycher
        5. ZOOKEEPER-961.patch
          5 kB
          Thomas Koch

          Issue Links

            Activity

              People

              • Assignee:
                mspycher Matthias Spycher
                Reporter:
                pm47 pmpm47
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: