znode cversion decreasing?

2010-04-11 Thread Kevin Webb
I'm using Zookeeper (3.2.2) for a simple group membership service in the manner that is typically described[1,2]: I create a znode for the group, and each present group member adds an ephemeral node under the group node. I'm using the cversion of the group node as a "group number". I expe

Re: znode cversion decreasing?

2010-04-11 Thread Patrick Hunt
Hi Kevin, The server increments a znode's cversion by one each time a change to it's child list is made. Every znode has it's own cversion. It should never decrease. If you delete a znode and create it a new then the cversion is reset for that znode. The cversion also happens to be used for t