Repository navigation
fix(id-worlds): hold an exclusive lock for the FileJournal lifetime - #11259
Conversation
Concurrent FileJournal handles could compact over each other and lose acknowledged appends. Hold a stable sibling lock file (<journal>.lock) for the journal's lifetime so a second live handle is refused with a clear error, and the lock survives compaction's rename. Fixes #8459
…journal-exclusive-lock
…journal-exclusive-lock
TryLockError has no kind() method; match WouldBlock and Error explicitly.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…orld_is_refused Dropping the service leaves its actor - and the actor journal ownership (#8459) - alive, so the second open was refused as a concurrent open instead of reaching the belongs-to check. Capture the handle and shut the actor down explicitly. Found shepherding PR #11259: full id-worlds suite run with the #11231 compile fix merged locally - 752 passed, this test the only failure.
Summary
FileJournalhandles could compact over each other and lose acknowledged appends.<journal>.lock) for the journal's lifetime. A second live handle is refused with a clear error. The lock file is stable, so it survives compaction's rename.0600on Unix.Verification
cargo fmt --check --package id-worldspasses.git diff --checkpasses.origin/main(1dbee54b) does not compile inid-worlds:world_session/session_core.rs:18andworld_session/mod.rs:1449don't coverClientFrame::PointerandClientFrame::Hover. The targeted journal test run was abandoned per run instructions, so the lock behaviour is unexecuted here. CI on this branch will fail for the same pre-existing reason until main is fixed.Fixes #8459
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.