Is there any facility in the Apache Curator lock recipes (or lower-level ZooKeeper) for auto-releasing locks that have exceeded some TTL? If not, is there a best practice for dealing with that? I see that Curator automatically releases locks in the case of the client connection being lost, which is nice...and the timeout on lock acquisition is also helpful.
I'm wondering to what degree I need to protect my system by making a recurring job that looks for locks that have been around to long and manually releasing them. Would I do that by having my separate process directly delete the relevant ZNode?
FYI - this is 2 years later. I've written and have had accepted TTL Nodes for ZooKeeper (which, of course, Curator will support). It's in master now and will be in a future release of ZooKeeper and Curator.
https://issues.apache.org/jira/browse/ZOOKEEPER-2169