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

Respect chroot in getEphemerals API

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7
    • Fix Version/s: None
    • Component/s: java client
    • Labels:
      None

      Description

      Example 

      // manually create /foo path using zkcli for example
      ZooKeeper zoo = new ZooKeeper("127.0.0.1/foo", 1000, event -> {});
      zoo.create("/bar", "baz".getBytes(), ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.EPHEMERAL);
      List<String> ephemerals = zoo.getEphemerals();
      System.out.println(ephemerals.toString());
      // expected [/bar], actual [/foo/bar]

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vajexal vajexal
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: