The server to which the client is connected will buffer the read until the write is executed and applied to its state, so the read will necessarily return a value at least as recent as the one written by the write in your example. ZK guarantees that async operations are executed in order of invocation. On Mar 6, 2016 23:57, "wayne" <[email protected]> wrote:
Thanks Chris! I appreciate the answer a lot! What you said made perfect sense in the case that request are sent synchronously (which was my assumption :)). What if the requests are sent asynchronously? e.g. If I call AsyncWrite, AsyncRead within a session, when the AsyncRead is executed, the previous AsyncWrite's result might not have been returned to the client yet, then there is no way for the client to know the previous AsyncWrite's zxid, correct? In that case, could the situation I mentioned in my previous post happen? -- View this message in context: http://zookeeper-user.578899.n2.nabble.com/zookeeper-client-session-write-read-consistency-tp7579330p7582099.html Sent from the zookeeper-user mailing list archive at Nabble.com.
