Repository navigation
fix(conntrack): restart ordered monitoring after receive errors - #32865
mergify[bot] merged 2 commits into
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Queue requested — the merge queue status continues in this comment ↓. |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 97fca13a482f75966e70ed2e6ba6a1bd05da8ce9
Assessment: approve
The listener owner and bounded retry loop reuse existing APIs, isolate generations, and stop stale reporting while preserving optional diagnostics. No actionable findings remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed both changed files, complete discussion and linked issue context; source remains unchanged.
-
Isolation preflight passed. Exact-file normal/race tests passed; eight lifecycle tests each passed 100 race repetitions, and three socket boundary tests passed under race.
-
Scoped vet and formatting passed. Reused successful exact-head CI build, UT, coverage and SCA evidence.
-
Discussion coverage and all 17 local command/source/exit receipts are reconciled in the diagnostic records.
Limitations:
-
Local tests used explicit-file mode; broader package coverage relies on exact-head CI.
-
The author's real-kernel ENOBUFS experiment was not independently reproduced. Counts intentionally remain incomplete since listener start.
✅ Merged into
|
What type of PR is this?
Which issue(s) this PR fixes:
Related to #32851. Follow-up to merged #32854 for the fatal-receive-error availability gap identified during its review.
What this PR does / why we need it:
The ordered, single-worker conntrack listener exits on ENOBUFS or a decode error. Previously MO only logged that error and continued reporting its stale map forever. This affects diagnostic connection statistics, not SQL or stored data.
scope=since_listener_start,complete=false, and a start timestamp. This resumes future observation; it does not reconstruct events lost during overflow or claim a full kernel-table snapshot.Validation on Linux/Go 1.27.1, using the current socket v0.7.0 dependency:
cmd/mo-servicepackage: normal and race both pass, 186 tests/subtests, zero skipped.0 -> 64 -> 0. Final kernel dump is empty; cleanup joins successfully.-h: pass.The monitor remains process-owned. An extra immediate-shutdown hook was deliberately excluded after testing exposed the dependency's worker-registration/Close race; runtime recovery here starts only after the worker has delivered its fatal error. Initial permission/setup failure remains nonfatal and does not start background retries. Repository-wide CI and production acceptance remain separate from these local results.