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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.2.2
    • Fix Version/s: 3.3.0
    • Component/s: java client
    • Labels:
      None
    • Hadoop Flags:
      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
          2 kB
          Scott Wang
        2. ZOOKEEPER-682.patch
          0.8 kB
          Scott Wang

          Activity

            People

            • Assignee:
              lunastorm Scott Wang
              Reporter:
              lunastorm Scott Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: