commit | ad6bbee36f06b7d5b0fe661acff141af4b55bc9a | [log] [tgz] |
---|---|---|
author | randgalt <randgalt@apache.org> | Thu Jan 03 21:07:00 2019 -0500 |
committer | randgalt <randgalt@apache.org> | Thu Jan 03 21:07:00 2019 -0500 |
tree | ae835642e8900479046c19b50c19e930cd57aa7e | |
parent | 818e1ed0badf9f641c24ab1a883495ac3eb5586b [diff] |
CURATOR-498 Alternate fix - simpler and hopefully works. Make note of the ZK session ID at the start of the create operation. When protected mode is engaged, check the session again. If the IDs don't match, delete any found node and return null to cause a new node to get created.
Apache Curator is a Java/JVM client library for Apache ZooKeeper[1], a distributed coordination service.
Apache Curator includes a high-level API framework and utilities to make using Apache ZooKeeper much easier and more reliable. It also includes recipes for common use cases and extensions such as service discovery and a Java 8 asynchronous DSL. For more details, please visit the project website: http://curator.apache.org/
[1] Apache ZooKeeper https://zookeeper.apache.org/