zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Chernetsky <ichernet...@mesosphere.com>
Subject Re: Is sync effectively recursive?
Date Fri, 22 Sep 2017 18:54:08 GMT
Hi Ivan,

Thanks a lot for getting back to me so quickly.

> > Then the client A shuts down, and the client B comes up. If the client B
> > does a sync on /, is it safe to assume that reading /parent, or
> > /parent/childA or any other node is safe meaning that the client B will see
> > all the most recent updates made by the client A?

> Yes, sync flushes the channels between the connected server and the
> leader, so once you call sync, any further requests will see at least
> the true state of the cluster at the time the sync was called. I dunno
> why it takes a path, since zk has only one log.

This is what I assumed, and it absolutely makes sense. Though I was
not sure whether all the in-memory data structures get updated for _all_
ZK nodes on a log sync. Just wanted to double-check.

Thanks again.


View raw message