Antithesis built a fake disk that loses data on purpose

Nightmare mode: simulating disk failures

Antithesis engineers needed to test how customer software survives disk faults, but you can't just pull the plug on a simulated machine. Their answer: Amnesia, a Rust FUSE filesystem that keeps both volatile and durable state in memory, so an fsync becomes a bookkeeping update. It fakes power loss, torn writes, I/O errors like the one behind fsyncgate, and latency spikes — all without touching a real disk.

When fsync() returns success it means "all writes since the last fsync have hit disk" but we assume it means "all writes since the last SUCCESSFUL fsync have hit disk".
  1. InsidiousWombat

    Interesting that they didn't go with device mapper, there are already few modules aimed at simulating bad hardware, and also far faster

  2. TacticalCoder

    > This was further complicated by some running on the ext4 filesystem, and some on XFS or ZFS, each with its own behaviors under failure.

    ZFS is only mentioned in that sentence in the article but: to be fair it has to be pointed out that a proper ZFS tank exists, basically, so that the system precisely keeps behaving under a great many different failures that would make other filesystems just die a painful death (like, for example, ext4).

    Not a criticism: anything that simulates failure like a "chaos monkey": be it by pulling network cables or by turning servers off at random or by simulating disk failures is a win in my book.

More from this day

2026-11-29