{"id":"compact-closes-handles-before-keydir-fully-updated","text":"In `hash-index-storage/bitcask.py`, cached file readers for old immutable files are closed at the start of the merge-write phase, before all keydir entries have been updated to point to new locations, creating a window where reads would fail even without concurrent access","truth_value":"IN","source":"entries/2026/05/29/topic-concurrent-merge-safety.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"explanation":{"steps":[{"node":"compact-closes-handles-before-keydir-fully-updated","truth_value":"IN","reason":"premise"}]}}