Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid leaking Zookeeper znodes in tryLock
Creating a EPHEMERAL_SEQUENTIAL node was being used to ensure the Zookeeper connection had been established. These were never explicitly removed, which led to tryLock effectively leaking zNodes until the client was terminated. This in turn lead to an extremely large number of ephemeral nodes being deleted whenever a long running service terminated! This fix replaces the creation of a node with a stat of "/" instead. This has the desired effect of re-establishing the Zookeeper connection, but is a read-only operation. * Remove unused import
- Loading branch information