Expand description
In-memory storage with deterministic fault injection In-memory storage simulation with deterministic fault injection.
This module provides InMemoryStorage, a low-level backing store for simulated
files that follows TigerBeetle’s pristine memory + fault bitmap pattern.
§Key Design Insight
Pristine data stays clean. Faults are applied on READ, not stored in data. This allows toggling faults without data loss, making it easy to simulate various storage failure scenarios.
§TigerBeetle References
- Fault bitmap pattern: storage simulation
- Misdirected writes: lines 476-480
- Overlay system for read-time fault injection
Structs§
- InMemory
Storage - In-memory storage with deterministic fault injection.
- Sector
BitSet - A simple bitset for tracking sector states.
Constants§
- SECTOR_
SIZE - Size of a disk sector in bytes.