Repository navigation
Fix two cluster test flakes: prelude cancel race and record lock race - #1743
Merged
Merged
Conversation
PreludeChecks: the transcript-mismatch group cancelled rank 1's owner socket right after it refused rank 0. Rank 1 writes its completion only after it reads the peer confirmation, so a cancel that came first shut the socket under that write and the child exited 1. The owner now reads rank 1's completion before it cancels. Children inherit stderr, so a failing child names its own failure. ClusterSetupStore.updateRecord: the record lock was a single non-blocking flock. The service clears a stop drain in the same supervision tick that publishes child.running=false, so a stop request at that moment failed with "could not save the stop request". An operator who runs `darkbloom cluster stop` again after a timeout hits the same window. Record writes now poll the lock for up to 2 s. Other callers of withLock and update keep the single attempt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- ClusterService.publish(afterSupervision:) clears the stop drain while it holds the service lock. It now tries the record lock once and waits for the next tick when the record is busy, so the service lock is never held for the 2 s wait. - withLock polls only while flock reports EWOULDBLOCK or EINTR. - The new test closes its descriptor only after the scheduled unlock. - PreludeChecks: a failing child prints its mode and rank; the summary counts 11 children. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 of 17 tasks
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes two flaky tests on dev.
focused-PreludeChecks: "child did not finish its asserted path"
ClusterServiceRecoveryTests.plannedStopWaitsForOwnedServiceChildBeforePeerAndRetainsFailureIntent (timeout retry)
updateRecord. The record lock was one non-blocking flock. A stop request that came in that window failed with "could not save the stop request", and the peer was never asked to stop.darkbloom cluster stopagain. That second stop meets the same service write.ClusterSetupStore.updateRecordpolls the record lock for up to 2 s. Each holder only reads, changes and writes the record, so a held lock is a write in progress. OtherwithLockandupdatecallers keep one attempt..busy.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.