# Antithesis built a fake disk that loses data on purpose

Original title: Nightmare mode: simulating disk failures

> Hacker News story 50657937 · language: en · submitted 2026-11-26
> Web version: https://zeli.app/story/50657937
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 39 · by [dverlaeckt80](<https://news.ycombinator.com/user?id=dverlaeckt80>) · 💬 5
[original](<https://antithesis.com/blog/2026/nightmare-mode/>) · [HN discussion](<https://news.ycombinator.com/item?id=50657937>)

## Summary

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.

## Key quote

> 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".

## HN discussion (5 comments)

### [InsidiousWombat](<https://news.ycombinator.com/item?id=50684357>)

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

### [TacticalCoder](<https://news.ycombinator.com/item?id=50683733>)

> \> 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.

---

## Cite

- Page: https://zeli.app/story/50657937
- Date: 2026-11-26
- Source: antithesis.com (https://antithesis.com/blog/2026/nightmare-mode/)
- Hacker News: https://news.ycombinator.com/item?id=50657937

## Other languages

- zh: https://zeli.app/zh/story/50657937 · markdown: https://zeli.app/zh/story/50657937.md
- ja: https://zeli.app/ja/story/50657937 · markdown: https://zeli.app/ja/story/50657937.md
- ko: https://zeli.app/ko/story/50657937 · markdown: https://zeli.app/ko/story/50657937.md
- de: https://zeli.app/de/story/50657937 · markdown: https://zeli.app/de/story/50657937.md
- es: https://zeli.app/es/story/50657937 · markdown: https://zeli.app/es/story/50657937.md
- ru: https://zeli.app/ru/story/50657937 · markdown: https://zeli.app/ru/story/50657937.md
