You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "vajexal (Jira)" <ji...@apache.org> on 2021/04/24 05:17:00 UTC
[jira] [Created] (ZOOKEEPER-4286) Respect chroot in getEphemerals
API
vajexal created ZOOKEEPER-4286:
----------------------------------
Summary: Respect chroot in getEphemerals API
Key: ZOOKEEPER-4286
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4286
Project: ZooKeeper
Issue Type: Bug
Components: java client
Affects Versions: 3.7
Reporter: vajexal
Example
{code:java}
// 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]{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)