You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Pablo Francisco Pérez Hidalgo (Jira)" <ji...@apache.org> on 2024/08/31 00:24:00 UTC

[jira] [Created] (CURATOR-715) After ZOOKEEPER-2590 ZKPaths#mkdirs should check ancestors existence from last nodes to root

Pablo Francisco Pérez Hidalgo created CURATOR-715:
-----------------------------------------------------

             Summary: After ZOOKEEPER-2590 ZKPaths#mkdirs should check ancestors existence from last nodes to root
                 Key: CURATOR-715
                 URL: https://issues.apache.org/jira/browse/CURATOR-715
             Project: Apache Curator
          Issue Type: New Feature
          Components: Client
            Reporter: Pablo Francisco Pérez Hidalgo
             Fix For: 5.8.0


After the changes in ZooKeeper derived from fixing issue https://issues.apache.org/jira/browse/ZOOKEEPER-2590 (All ZooKeeper versions from 3.8.4 and 3.9.2), it is not longer possible to check the existence of a node without READ access on its parent.

When creating parents if needed, Apache Curator client checks the existence of all nodes in the path from the root node to the created one. However, this is not necessary, it is enough to check the existence of the nodes between the new node and the first existing ancestor. 

There are use cases where the first levels of a sub-tree are protected against read through ACLs. The current implementation makes it impossible to use `creatingParentsIfNeeded`.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)