feat(membership): detect local stalls during direct probes - #9979
Merged
ReubenBond merged 12 commits intoAug 23, 2026
Merged
ReubenBond merged 12 commits into
ReubenBond merged 12 commits into
Conversation
ReubenBond
force-pushed
the
feature/detect-local-gc-pauses-during-probe
branch
from
August 16, 2026 09:27
fa58798 to
1dba949
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates Orleans runtime membership probing to detect significant local GC pauses during direct inter-silo probes and to treat certain probe timeouts as inconclusive, reducing false fault detection when the local silo is unable to process a reply in time.
Changes:
- Passes the effective probe timeout into direct probing so it can be used for local GC-pause evaluation.
- Tracks
GC.GetTotalPauseDuration()across a direct probe and returnsProbeResultStatus.Unknownwhen GC pause time exceeds 25% of the probe timeout. - Adds a new warning log for probe failures treated as inconclusive due to detected GC pause.
Show a summary per file
| File | Description |
|---|---|
| src/Orleans.Runtime/MembershipService/SiloHealthMonitor.cs | Adds GC-pause-aware handling for direct probe failures/timeouts and corresponding logging. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 1/1 changed files
- Comments generated: 3
- Review effort level: Lite
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
ReubenBond
force-pushed
the
feature/detect-local-gc-pauses-during-probe
branch
from
August 21, 2026 19:22
c99e0c4 to
bc85280
Compare
Contributor
There was a problem hiding this comment.
Review details
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
src/Orleans.Runtime/MembershipService/SiloHealthMonitor.cs:375
- When a direct probe times out during a detected local GC pause, the failure is treated as inconclusive, but
MessagingInstruments.OnPingReplyMissed(...)is not invoked. That meansPingReplyMissedCounterwill under-report missed replies for these timeouts, while other failure/unknown paths (including indirect probes) still record a missed reply. Consider recording the missed reply before the GC-pause suppression check so metrics remain consistent.
// Check if a GC pause consumed a significant portion of the probe timeout.
// If so, the local silo may have been unable to process the response in time,
// so we treat this as an inconclusive result rather than a failure.
var gcPauseDuring = _localSiloHealthMonitor.TotalGarbageCollectionPauseDuration - gcPauseBefore;
if (probeTimedOut && gcPauseDuring >= probeTimeout.Multiply(0.25))
- Files reviewed: 3/3 changed files
- Comments generated: 0 new
- Review effort level: Lite
This was referenced Sep 9, 2026
Closed
Closed
This was referenced Sep 16, 2026
Open
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.
If there is a long GC pause during an inter-silo probe that subsequently times out, suppress the fault. Currently set to 25% of the window (so, a >= 1.25s GC pause will result in ignoring the failed probe by default)
Microsoft Reviewers: Open in CodeFlow