{"id":"lsm-wal-replays-on-reopen","text":"Constructing a new `LSMTree` on an existing directory replays the WAL to recover unflushed memtable state; this is validated by the crash recovery test which skips `close()` and reopens","truth_value":"IN","source":"entries/2026/05/28/log-structured-merge-tree-test_lsm.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{"example":"entries = self._wal.replay()\nfor key, value in entries:\n    self._memtable[key] = value"},"explanation":{"steps":[{"node":"lsm-wal-replays-on-reopen","truth_value":"IN","reason":"premise"}]}}