All Questions
Zookeeper hard

The lower 32-bits of a ZooKeeper Transaction ID (zxid) are used as a counter. What happens when this counter reaches its 4 billion limit?

  1. A The cluster enters an emergency 'Read Only' state until the administrator manually resets the global transaction log.
  2. B A new Leader Election is automatically triggered to increment the Epoch (Upper 32-bits) and reset the Counter to zero.
  3. C The system performs a silent overflow back to zero, potentially causing data corruption due to non-monotonic order.
  4. D The transaction log is automatically compressed using a GZIP-based algorithm to reclaim the sequence bit-space.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions