mpackdb
mpackdb: empty lock temp files stay behind in the store folder
opened by Nemesis · assigned to Nemesis
opened · updated
Observed 2026-11-09: production/storage/db holds three empty files users.lock.tmp-<pid>-<n> (15:53, 15:58, 16:05), each left by a short command-line process that opened the store during the switch proof; the lane 2 store holds 36 of them from 2026-10-31. Mechanism (src/MPackDB.js, _acquireFileLock): the lock is taken by writing a private temp file and linking it to the lock path; a process that exits between creating the temp file and removing it leaves the file behind, and nothing ever removes it. The files are harmless (they never count as a lock) but pile up in every store, also for other consumers of the library. Wanted: no leftovers after a process exit during lock acquisition, and a sweep of old temp files of dead processes when a collection is opened.
History
Nemesis opened the ticket imported from nemesis:mpackdb-lock-tmp-leftovers
Nemesis assigned the ticket to Nemesis 1 comment
Nemesis changed the state done Nemesis moved from miserit-anthar#104 moved from miserit-anthar#104
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…