You can still miss a pending write on the client. Just because you read N from 
the ZNode doesn't mean that that's it's real value on the leader. The only way 
in ZooKeeper to be certain is to do a write as those always take place on the 
leader.

-Jordan

> On May 1, 2020, at 5:51 PM, Scott Blum <dragonsi...@gmail.com> wrote:
> 
> On Fri, May 1, 2020 at 6:00 PM David Smiley <david.w.smi...@gmail.com 
> <mailto:david.w.smi...@gmail.com>> wrote:
> I don't think I'll use the "LastZxid" trick because we update parts of the ZK 
> tree with high frequency but not this one yet the Zxid would still soar 
> upwards.
> 
> I don't follow.. if server A writes a node, recording the mzxid associated 
> with that write, and passes it along to server B, then server B just needs to 
> be sure its LastZxid is >= the one that server A wrote.  Doesn't matter if 
> server B's LastZxid is the same, 10 ahead, or 1000 ahead.

Reply via email to