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

Event is not processed when the watcher is set to watch "/" if chrooted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.2.2
    • 3.3.0
    • java client
    • None
    • Reviewed

    Description

      After the event notification response from server is received, the client will convert the server path to the client path if chrooted by:

      event.setPath(serverPath.substring(chrootPath.length());

      If chrootPath and serverPath are the same, then the event's path will be set to a null string.

      But the key of the watcher's map is "/", not a null string, so the watcher will not get notified at all.

      Attachments

        1. ZOOKEEPER-682.patch
          0.8 kB
          Scott Wang
        2. ZOOKEEPER-682.patch
          2 kB
          Scott Wang

        Activity

          People

            lunastorm Scott Wang
            lunastorm Scott Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: