Repository navigation
Description
Summary
PR #32845 upgrades the root module's socket dependency and its golang.org/x/* dependency closure, but leaves the independent Iceberg adapter module's go.mod / go.sum unchanged. On the exact PR head, the documented make test-iceberg-adapter target fails before running any tests, and go build -mod=readonly ./... in that module fails before compilation.
This is a confirmed module-metadata/build regression. It is not evidence of a conntrack runtime regression, SQL wrong results, or data corruption. The adapter source currently describes itself as an isolated adapter spike with production RowDelta support disabled; this report does not claim that existing production Iceberg queries fail.
Branch, commit and environment
- PR: fix(conntrack): avoid socket watchers for background receives #32845, targeting
main, still open when verified on 2026-11-17. - Base:
e1160015bb5895c1677d5fc1496c4bee440592b3. - Tested head:
4c4a2fcb756bbe582e497ed5684b8ec6bfc8d36e. - Linux amd64, Go
1.27.1,GOTOOLCHAIN=local,GOWORK=off. - Base and head were checked out in separate clean detached worktrees. No production code or committed module files were changed during reproduction.
Reproduction
Use Go 1.27.1, as required by both modules. From a checkout of the repository:
git fetch origin refs/pull/32845/head
git worktree add --detach ../mo-pr32845 4c4a2fcb756bbe582e497ed5684b8ec6bfc8d36e
cd ../mo-pr32845/pkg/iceberg/adapter/iceberggo
export GOWORK=off
# Each command below fails independently at this revision.
go mod tidy -diff
go list -mod=readonly ./...
go build -mod=readonly ./...The list/build commands exit 1 with:
go: updates to go.mod needed, disabled by -mod=readonly; to update it:
go mod tidy
The repository-provided target also reproduces the problem without explicitly adding -mod=readonly:
# From the PR worktree root, with GOFLAGS and MO_ICEBERG_ADAPTER_GOFLAGS unset:
make test-iceberg-adapterRelevant actual output:
[iceberg-ci] env GOFLAGS= go test -tags iceberggo -count=1 ./...
go: updates to go.mod needed; to update it:
go mod tidy
make: *** [Makefile:691: test-iceberg-adapter] Error 1
This failure occurs during module loading, before native linking, service startup, Docker, SQL or any adapter test assertion.
Base/head and repair controls
| Check | Clean base | Exact PR head |
|---|---|---|
Nested module go mod tidy -diff |
Exit 0, empty output | Exit 1, dependency diff |
Nested module go list -mod=readonly ./... |
Exit 0, lists adapter package | Exit 1, module update required |
Nested module go build -mod=readonly ./... |
Not run | Exit 1 before compilation |
Root make test-iceberg-adapter |
Not run | Exit 2; nested Go command exits 1 before tests |
For an additional causal control, I copied only the head's nested go.mod and go.sum to temporary adapter-control.mod / adapter-control.sum files, then ran, from the nested module directory:
go mod tidy -modfile=/path/to/adapter-control.mod
go list -mod=readonly -modfile=/path/to/adapter-control.mod -tags=iceberggo ./...Both exit 0. This demonstrates that synchronizing the module metadata removes the dependency-loading blocker without changing application code. It is not a claim of a full repaired adapter build or test-suite pass.
Root cause
The nested module requires github.com/matrixorigin/matrixone v0.0.0 and replaces it with the repository root. The root upgrades therefore affect its selected module graph. Updating only the root module does not synchronize this separate module's committed metadata.
The nested go mod tidy -diff reports exactly these go.mod updates:
| Dependency | Still committed in adapter | Required after PR |
|---|---|---|
golang.org/x/crypto |
v0.51.0 |
v0.55.0 |
golang.org/x/mod |
v0.36.0 |
v0.38.0 |
golang.org/x/net |
v0.55.0 |
v0.58.0 |
golang.org/x/text |
v0.37.0 |
v0.41.0 |
golang.org/x/tools |
v0.45.0 |
v0.48.0 |
Its go.sum also needs the corresponding checksum updates, including github.com/mdlayher/socket v0.5.1 to v0.7.0. The stale entries are at nested go.mod lines 167–175; the target invokes the nested Go command at optools/iceberg_ci.bash:91.
Independent CI evidence agrees: Iceberg adapter module tidy, run 44035139068 / job 133876108572 failed with the same nested-module version/checksum diff. This is deterministic dependency drift, not the Go proxy/network error previously reported in #30221.
Expected behavior and suggested correction
The dependency upgrade should preserve a tidy nested module, so the adapter build and test entry points can proceed from a clean checkout.
Synchronize and commit both pkg/iceberg/adapter/iceberggo/go.mod and go.sum using Go 1.27.1 after the root dependency upgrade. No socket/lifecycle production-code change is needed to address this finding. Validate:
- Nested
go mod tidy -diffexits 0 with no diff. - Nested
go list -mod=readonly -tags=iceberggo ./...succeeds. make test-iceberg-adapterpasses with matching normal MatrixOne native build prerequisites installed.- The existing Iceberg module-tidy CI gate passes.
Related issues and review boundary
- [Bug]: test-iceberg-adapter fails because nested Go module metadata is stale #27197 and [Bug]: test-iceberg-e2e-local fails because the nested adapter module is not tidy #27721 describe earlier occurrences of the same class of nested-module drift and are both closed. The clean base checks above pass; this is a new occurrence introduced by fix(conntrack): avoid socket watchers for background receives #32845. Searches across open/closed issues for
32845,iceberg tidy, andupdates to go.mod, plus open adapter/module issues, found no report of this specific regression. - The socket change itself passed independent local checks: all three PR socket contracts ran 100 times each under
-race; socket/netlink/netfilter/conntrack package race suites passed with five environment-dependent test/subtest skips. HTTP/2, HKDF, PBKDF2, case-folding, collation and normalization package tests also passed, with four optional Unicode-data-dependent skips. - These checks do not reproduce the production negative-WaitGroup-counter panic in [Bug]: 4.2 AP CN crashes with negative WaitGroup counter in the conntrack/socket receive watcher during Family concurrency #31954 or establish its ultimate root cause. That issue should retain its separate field-acceptance requirement.
Activity
fix(conntrack): avoid socket watchers for background receives (#32845)
XuPeng-SH commentedon Nov 17, 2026
转 QA 验证,不代表验收通过。
#32845 已合 main:
5294772e78a5a9b241f9732a59236db587f2b470(heade365ddc912f9e75c7184851fb0d504619dcc6057)。已同步独立 Iceberg adapter go.mod/go.sum 的 x/* 与 socket 依赖闭包,并镜像 root 既有 usearch fork replacement;原本 root replace 不会被嵌套模块继承。本 issue 是确定性模块 metadata/build 缺陷,不按 CI flaky 直接关闭。作者报告 Go 1.27.1、匹配 native prerequisites 下 nested tidy diff、readonly tagged package loading、module verify 通过,实际 make test-iceberg-adapter 普通和 race 各 9/9、无 skip。评审 5688e56 复用 frozen CI build/UT/native/BVT/module-tidy 成功;本地只执行 socket tests,未独立重跑完整 adapter/service/native。Full Iceberg SQL/MinIO E2E 未测。最终队列出队原因是 fork 编辑权限,不等同于产品失败或最终 CI 全绿;合并状态已核实。
请 QA 用最终 main 的干净 checkout 和 Go 1.27.1,复核 nested tidy 无 diff、readonly -tags=iceberggo 加载/构建、正常 native prerequisites 下 make test-iceberg-adapter 普通/race 与 module-tidy CI;确认 committed module metadata 不被改写。根据 adapter 的实际支持范围补 SQL/MinIO 集成验证,勿把 spike 测试通过写成生产 RowDelta 支持或全量 Iceberg 验收。本轮未本地执行测试。
已读 issue 与 PR 完整评论,没有尚未完成的本 issue 开发 follow-up 或适用当前反例。#31954 的负 WaitGroup field acceptance 与 #32851 的 event-order 缺陷是独立边界,不据此关闭或宣称修复。改派唯一 @Ariznawlll,保持开放。
Ariznawlll commentedon Nov 18, 2026
QA 独立复验完成:官方修复(#32845 后续 metadata 同步)有效,按原始验收范围通过。
测试环境
517e1695388cbaf1135238d5ab0c19a4556fb551(含 5294772 "avoid socket watchers" 修复提交)验证步骤与结果(对应 issue 正文验收点:
make test-iceberg-adapter与go build -mod=readonly不得失败)go mod tidy -diff:无差异 ✅go list -mod=readonly -tags=iceberggo ./...:通过 ✅go build -mod=readonly -tags=iceberggo ./...:通过 ✅make test-iceberg-adapter(普通 +-race):全包ok github.com/matrixorigin/matrixone/pkg/iceberg/adapter/iceberggo✅环境注记:本地复验需给 CGO_LDFLAGS 显式加
-Wl,-rpath,<thirdparties>/lib -Wl,-rpath,<cgo>(macOS 下make子进程不继承 DYLD_LIBRARY_PATH,无 rpath 时测试二进制加载 libmo.dylib 失败)——这是验证环境配置,不是产品缺陷。回归交付
14_issue_regression.issue_32848_iceberg_adapter_module:record 2/2 PASS + verify 2/2 PASS,已加入今日 main PR https://github.com/matrixorigin/motr/pull/358(commit f9f44f5)。范围外(不声称):生产 RowDelta、Full Iceberg SQL、MinIO 集成——本 issue 明确仅为模块 metadata/build 缺陷。