cultcache-rs: lock-file open waits through a Windows sharing violation #164

Merged
libby merged 1 commit from store-replace/rust-lock-open-waits into main 2026-11-13 11:16:16 +00:00
Member

Cut variants:cut_spec:cut-cut-rust-lock-open-waits.r1.

open_lock_file retries (unbounded, 5 ms sleep) while the open fails with raw os error 32, cfg(windows) only. The try entry opens once and maps a sharing violation to Ok(None). Three Linux tests drive the helpers with fakes; each was shown red against a hand mutation. cargo test --locked in packages/cultcache-rs passes on Linux; the windows-gnu target is not installed here, so no Windows check was run.

🤖 Generated with Claude Code

Cut variants:cut_spec:cut-cut-rust-lock-open-waits.r1. open_lock_file retries (unbounded, 5 ms sleep) while the open fails with raw os error 32, cfg(windows) only. The try entry opens once and maps a sharing violation to Ok(None). Three Linux tests drive the helpers with fakes; each was shown red against a hand mutation. cargo test --locked in packages/cultcache-rs passes on Linux; the windows-gnu target is not installed here, so no Windows check was run. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
cultcache-rs: lock-file open waits through a Windows sharing violation
All checks were successful
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Successful in 20m0s
0baa010f85
open_lock_file retries while the open fails with raw os error 32 (cfg(windows) only),
as lock_exclusive and lock_shared already wait on the lock itself. The try entry opens
once and maps a sharing violation to Ok(None). Helpers take the open closure and busy
predicate so Linux tests drive them with fakes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
libby merged commit c229b86fde into main 2026-11-13 11:16:16 +00:00
libby deleted branch store-replace/rust-lock-open-waits 2026-11-13 11:16:16 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/CultLib!164
No description provided.