fix(rivetkit): prevent sleep races during disconnect and db work#4644
fix(rivetkit): prevent sleep races during disconnect and db work#4644NathanFlurry wants to merge 1 commit intofix/isolate-engine-envoysfrom
Conversation
PR Review: fix(rivetkit): prevent sleep races during disconnect and db workSummaryA small, focused bug-fix PR (5 additions, 0 deletions) addressing two race conditions where an actor could incorrectly fall asleep:
Code Quality and Best PracticesThe changes are clean and consistent with the existing codebase:
Potential Bugs / IssuesThe new Without the new line, there is a window between incrementing After the No correctness issues found. PerformanceNo concerns. SecurityNo security implications. Test CoverageNo tests are included. Given the race condition depends on a timer firing in a narrow async window, deterministic unit testing would require timer mocking, which is reasonable to defer. If tests are added later, a useful case would be: start an actor with a very short VerdictThe PR is correct and well-scoped. The |
7825238 to
f6957bf
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: