The ZooKeeper stat structure

Every znode in ZooKeeper's namespace has a stat structure associated with it, which is analogous to the stat structure of files in a Unix/Linux filesystem. The fields in the stat structure of a znode are shown as follows with their respective meanings:

  • cZxid: This is the transaction ID of the change that caused this znode to be created.
  • mZxid: This is the transaction ID of the change that last modified this znode.
  • pZxid: This is the transaction ID for a znode change that pertains to adding or removing children.
  • ctime: This denotes the creation time of a znode in milliseconds from epoch.
  • mtime: This denotes the last modification time of a znode in milliseconds from epoch.
  • dataVersion: This denotes the number of changes made ...

Get Apache ZooKeeper Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.