title: can ZooKeeper get znode data and znode data version (stat) in one single operation?
body: <p>I am developing an application that use ZooKeeper as the datastore. For one of the methods in the application, I need to use the optimistic concurrent control. For example, I need to implement a get method which get the znode data, and I use the znode data version for the optimistic concurrent control check. For what I understand, one can't get the znode data and znode data version in one single operation. If there is high contention to update the znode data, the get method will not work since the znode data might changed after getting the znode data. so I am asking - <strong>is there a way I get can the znode data and znode data version (or znode stat) in one single operation without any locking attempt in between?</strong></p>