curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Blum <>
Subject Re: Determining ZNode change for the cache recipes
Date Sun, 12 Mar 2017 21:09:33 GMT
I think "version" and "mzxid" should be equally reliable for determining
that the contents changed.  Whenever a change happens the version gets
incremented while the mzxid gets set to the associated zk transaction id.
So I don't see a problem with ifVersion == data.getStat().getVersion() but
I haven't looked through all the PathChildrenCache code in a while, was
there something else you were referring to going on in there?

On Sun, Mar 12, 2017 at 1:23 PM, Jordan Zimmerman <> wrote:

> I'm working on CURATOR-391 and notice that TreeCache uses Mzxid to
> determine if a ZNode has changed. PathChildrenCache uses a less reliable
> method. I _think_ that Mzxid is enough. Does everyone else agree?
> -Jordan

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message