zookeeper-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [zookeeper] maoling commented on issue #1091: ZOOKEEPER-3546: Delete empty containers with cversion == 0 after a grace period
Date Tue, 17 Sep 2019 07:09:05 GMT
maoling commented on issue #1091: ZOOKEEPER-3546: Delete empty containers with cversion ==
0 after a grace period
URL: https://github.com/apache/zookeeper/pull/1091#issuecomment-532091523
 
 
   - If I create a container node which has not any children yet, it will never be deleted
by the cleaning task, this behavior is expected.
   - the doc in the **zookeeperProgrammers.md**
   
   > ZooKeeper has the notion of container znodes. Container znodes are
   special purpose znodes useful for recipes such as leader, lock, etc.
   When the last child of a container is deleted, the container becomes
   a candidate to be deleted by the server at some point in the future.
   Given this property, you should be prepared to get
   KeeperException.NoNodeException when creating children inside of
   container znodes. i.e. when creating child znodes inside of container znodes
   always check for KeeperException.NoNodeException and recreate the container
   znode when it occurs.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message