Skip to content

connection state: remove temp files stranded by a crash between write and rename #825

Closed

Description

@tps-flint

Follow-up from #811 (#808). writeFileAtomic removes its temp file on any throw, but a process killed between creating .<record>.<uuid>.tmp and the rename leaves it in the connections directory forever. The fix removes stale temp files of that exact name shape (older than a bound, owned by no live writer) when the directory is next written or read, with a test that plants one and asserts it is removed and that a fresh one in use is not.

Refs #808, #811

Activity

  1. moved this to Triage in Office queueon Nov 7, 2026
  2. moved this from Triage to In review in Office queueon Nov 9, 2026
  3. self-assigned this
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions