All Questions
Zookeeper hard

A Follower node rejoins the ensemble. It contains an uncommitted transaction log entry with `ZXID: 500`. The current authoritative Leader only has reached `ZXID: 499`. How does ZooKeeper resolve this discrepancy?

  1. A The Leader issues a DIFF instruction and appends its own history to the Follower's existing log.
  2. B The Follower is discarded and forced to perform a full SNAP (Snapshot) synchronization from the Leader's RAM.
  3. C The Leader issues a TRUNC instruction, forcing the Follower to delete the uncommitted Transaction 500 and align with the cluster's majority history.
  4. D The system automatically performs a three-way merge using the client session ID as the tie-breaker for the conflicting ZXIDs.

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

Get the app

Related questions