Repository navigation
fix(supervisor): prune stale tombstones on TID collision and shutdown… - #16224
Merged
Merged
Conversation
… socket errors On Linux, thread IDs share the PID number space, so kill(pid, 0) can succeed for a worker thread that recycled a dead supervisor's PID, while a crashed supervisor may never unlink its socket. Both facts together blind the pruning logic and leave permanent tombstones. - showRunningSupervisors now requires the socket to exist and, on Linux only, the PID holder to be the kcserver binary (/proc comm) - handleShutdownAction drops the registry entry when shutdown fails with ENOENT/ECONNREFUSED instead of keeping the dead entry - add supervisorLiveness unit tests (run under the existing harness) Fixes #16167
Contributor
|
E2E Tests 🚀 Why these tags?
More on automatic tags from changed files. |
Contributor
|
Thanks for picking this up, @jmcphers! Verified the triple-gate approach (socket existence + /proc comm + live handshake) on my self-hosted Server box — matches what I saw in container forensics. Happy to help test the TCP-side refinement if needed. |
Collaborator
Author
|
No sweat, I don't think any more TCP work is needed at this time. Appreciate the contribution! |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Continuation of #16176.