Repository navigation
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: 5688e567ca28bc4eac7ab91bcb5610e5ba12d7e9
Assessment: approve
No actionable defects found. The upgrade reuses upstream socket lifecycle handling and aligns the independent Iceberg module without adding MO runtime machinery.
Model: gpt-6.1-sol / max
Session: 01a1e395-a6d9-7ad1-bf20-81f1c6210100 · slot 2 · generation 0
Validation:
-
Go 1.27.1 focused socket tests passed: 3/3 normal, 3/3 race, then 100 race iterations per test; no skips or race reports.
-
The socket v0.5.1 control failed the cancellation test as expected; v0.7.0 passed.
-
Verified pinned dependency sources and checksums. Frozen-head CI reports successful build, UT, native, BVT and Iceberg module-tidy checks.
-
validation-audit.json matches claimed local checks to command/source/exit receipts and retained logs. Source remained clean; discussion-assessment.json covers all three discussion entries.
Limitations:
-
Local execution covered the socket test file. Full service/native/adapter suites were not rerun locally; broader evidence comprises frozen CI statuses and attributed author reports. Iceberg E2E was skipped.
-
The negative-WaitGroup panic cause remains unproven. Field acceptance in #31954 and the preexisting event-order issue #32851 remain separate.
🚫 Left the queue · pull request dequeued3 h 33 min in the queue, with no time running CI. So far
Reason Pull request #32845 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
To get back in the queue
Merge conditions not met when it left the queue
Tick the box to put this pull request back in the merge queue (same as
2 merge conditions met
Times in UTC · dashboard · how the merge queue works |
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Fixes #32851 ## What this PR does / why we need it: Use **one ordered conntrack receiver**, through the existing `Listen` API. conntrack v0.5.1 workers independently receive, decode and publish events. With multiple workers a flow's DESTROY can reach `logConnTrack` before its NEW, even when every event was received. The consumer then retains the destroyed flow and reports an incorrect active-connection count. This is intentionally separate from the socket/watcher upgrade in #32845. It does not change dependencies, the 65,536-event channel, the map consumer, SQL behavior, or shutdown ownership. No expiry, tombstone map, reconciliation loop or new configuration is introduced. The unused `runtime` import is removed. The existing startup/Listen-failure test now captures the worker count and requires one ordered listener, while retaining its socket-cleanup assertion. This avoids creating an unowned Background monitor in the unit test. ### Validation on 50 Base: `43addc16ba30c3e5a0feb11447078092a5fc3953` (Main). Linux amd64, Go 1.27.1, `GOAMD64=v3`, `GOEXPERIMENT=simd`, `GOWORK=off`. - Regression red/green: the new startup assertion fails against original production code (`got 20 workers`); fixed code passes, including 100 race repetitions in one process. - Native artifacts rebuilt in the isolated worktree through `make -j4 cgo`. - Complete `cmd/mo-service` normal tests: 169 pass, zero skipped/failed. - Complete `cmd/mo-service` race tests: 169 pass, zero skipped/failed (24.039 seconds package execution). - Incremental SCA: repository-selected `molint` and golangci-lint 2.14.0 on the full affected package pass, zero reported issues; `git diff --check` passes. - Real kernel test in disposable network namespaces: eight producers create and delete 16,384 synthetic UDP flows per run. Validate exactly 16,384 NEW and 16,384 DESTROY events, matching flow IDs, no receive errors and an empty kernel table before checking the consumer's map rule. | Bounded kernel workload | Original 20 workers, three runs | Fixed 1 worker, three runs | | --- | --- | --- | | 32-flow batches: stale map entries | 2990 / 2965 / 2904 | 0 / 0 / 0 | | 64-flow batches: stale map entries | 2636 / 2487 / 2648 | 0 / 0 / 0 | - Kernel race stress: 20 repetitions in one process, **327,680 complete flow lifecycles**, all events received, kernel and map zero at every run's end; no race reports. Additional three-run race calibration also passes. - Compatibility control using #32845's socket v0.7.0 dependency graph: three 16,384-flow runs also pass with one worker and zero residual entries. ### Capacity and scope boundary The bounded normal tests observed roughly 90k–115k events/sec with the current Main dependencies. This is a synthetic capacity check, not a production throughput guarantee; concurrent compilation and batching affect timing. Larger 256/2048-flow bursts hit the **existing kernel receive-buffer limit in both configurations**. Those failures are not counted as passing tests. The dependency terminates a worker on fatal receive errors; single-worker listening does not add loss recovery and must not be described as fixing all possible conntrack inaccuracies. Kernel-loss reconciliation is outside this no-loss event-order fix. No buffer sizes were changed to make the tests pass. SQL BVT is not the changed boundary: this patch only changes Linux diagnostic event delivery, verified with the real netlink interface. No customer/host conntrack entries were changed. This does not claim to fix the separate #31954 panic, reproduce an OOM, or address database correctness. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
What type of PR is this?
Which issue(s) this PR fixes:
Related to #31954. Keep the issue open for field acceptance; this removes the observed failing path but does not claim a deterministic reproduction of the negative WaitGroup counter.
Fixes #32848 (nested Iceberg adapter dependency/build drift).
What this PR does / why we need it:
The CN crash in #31954 occurs in socket v0.5.1's per-operation cancellation watcher beneath conntrack/netlink. Netlink receives with
context.Background(), yet that version still creates a watcher and WaitGroup for every receive.Upgrade
github.com/mdlayher/socketto upstream v0.7.0:Keep conntrack enabled and retain its existing ownership. No MO production lifecycle rewrite, recovery shim, SQL/storage change or dependency fork. The upgrade requires x/net v0.58.0 and its crypto/text/tools/mod module closure; netlink and conntrack versions remain unchanged.
Synchronize the independent Iceberg adapter module's dependency versions/checksums as well. Its local root-module replacement does not inherit root
replacedirectives, so also mirror the existing usearch fork required by the native ABI. The missing usearch replacement reproduces on the clean PR base; this is not a socket runtime regression. No native or adapter production code changes are needed.Add three privilege-free real-socket contracts beside the conntrack consumer: Background receipt, cancellation followed by socket reuse, and Close of 16 admitted receivers. The cancellation contract fails on v0.5.1 and passes on v0.7.0. It reproduces the cancellation defect, not the production negative-counter panic; inspection of the old code does not establish a double-Done cause.
Local validation on 50, against Main
e1160015bb58, Go 1.27.1 with matching native artifacts:cmd/mo-serviceUT and race: passed, 172 named tests/subtests each, no skips. Each new socket contract also passed 100 race repetitions.make test-iceberg-adapterpassed in normal and race modes, 9/9 tests each, no skips. Earlier root/socket/BVT evidence is reused because this follow-up only changes the nested module metadata. Full Iceberg SQL/MinIO E2E is not claimed.Long-duration and multi-CN field acceptance remain necessary. This is not a claim that every CN crash or the ultimate negative-counter cause has been resolved.
Review also identified the independent, pre-existing conntrack event-order/retention bug #32851 on both base and head. It is not fixed or closed by this dependency upgrade and should receive a separate ordered-event handling fix.