Repository navigation
v1.20.5 — atomic stale-lock takeover
1.20.5 — atomic stale-lock takeover
- A stale
events.jsonl.lockis now taken over atomically: the waiter renames the dead lock away before recreating it, so two processes that both saw the same crash leftover can no longer delete the winner's fresh lock and write concurrently. - The 10 s stale threshold and the 15 s acquisition timeout are unchanged.
- Regression test: two stores start against one stale lock, both records land, and no
.staleleftovers remain.
Tests: 280 passing (npm test).