Repository navigation
Keep private server leases out of the stop result - #2739
Merged
Merged
Conversation
A private listener holds server.lock before any service.json exists. cmd_stop counted that lease as a running service under the old-record fallback and could return true or false depending on the release race. Require an existing unreadable record for that fallback. A deterministic lease test fails before and passes after; the existing private-preparation stop test and adjacent stop checks pass.
max-sixty
added a commit
that referenced
this pull request
Oct 13, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.
server stopnow returns false when it encounters only a private listener lease with noservice.json. Its old-record fallback counted any held lease as a running service, so the return value depended on whether stop observed a listener just before or just after its preparation ended. This surfaced as an intermittent failure in PR #2732's CI run. An existing but unreadable service record still takes the fallback path.A deterministic test holds the private lease at the stop decision: it fails on the previous code and passes with this change. The original private-preparation process test and adjacent stop cases also pass (five focused cases total).