Hi everyone,
In ZKPaths.mkdirs, when it's creating parent nodes in the path, it's using
the full path's ACLProvider, like this:
    String subPath = path.substring(0, pos);
    if ( zookeeper.exists(subPath, false) == null )
    {
        ...
            List<ACL> acl = null;
            ...
                        acl = aclProvider.getAclForPath(path);
            ...
            zookeeper.create(subPath, new byte[0], acl,
CreateMode.PERSISTENT);

It seems to me that the call to getAclForPath should use subPath instead of
path, so the ACLProvider knows what node is about to be created, but maybe
this is by design?

Thanks,
Martin

Reply via email to