Unmesh Joshi shows how the same network fault can produce two outcomes in a three-replica key-value store. A write succeeds if the second acknowledgment arrives in time and fails if the deadline comes first. His Java simulator, Tickloom, lets a test choose which event happens first and replay that choice.

  • Run the protocol on one thread and advance the clock, network and disk in explicit steps, called ticks.
  • Isolate one replica and delay another’s acknowledgment by 20 ticks. A 10-tick timeout then fires on every run.
  • Use a seed to generate more combinations of faults and requests. Check the recorded client operations for outcomes such as a stale read after an acknowledged write.
  • In the simulated filesystem, a crash discards writes that were visible but hadn’t been made durable.

A seed repeats the faults you chose. The simulator must also control when the rest of the system sees them. Start with one guarantee a client relies on, and write a test that puts it under pressure on both sides of a deadline.