Skip to content

[Bug]: PR #32845 leaves Iceberg adapter module stale, breaking its build and test target #32848

Closed

Description

@LeftHandCold

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-adapter

Relevant 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:

  1. Nested go mod tidy -diff exits 0 with no diff.
  2. Nested go list -mod=readonly -tags=iceberggo ./... succeeds.
  3. make test-iceberg-adapter passes with matching normal MatrixOne native build prerequisites installed.
  4. The existing Iceberg module-tidy CI gate passes.

Related issues and review boundary

Activity

  1. added
    severity/s0
    and removed on Nov 17, 2026
  2. added a commit that references this issue on Nov 17, 2026
    5294772
  3. XuPeng-SH commented on Nov 17, 2026

    @XuPeng-SH
    Contributor

    转 QA 验证,不代表验收通过。

    #32845 已合 main:5294772e78a5a9b241f9732a59236db587f2b470(head e365ddc912f9e75c7184851fb0d504619dcc6057)。已同步独立 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,保持开放。

  4. Ariznawlll commented on Nov 18, 2026

    @Ariznawlll
    Collaborator

    QA 独立复验完成:官方修复(#32845 后续 metadata 同步)有效,按原始验收范围通过。

    测试环境

    • main @ 517e1695388cbaf1135238d5ab0c19a4556fb551(含 5294772 "avoid socket watchers" 修复提交)

    验证步骤与结果(对应 issue 正文验收点:make test-iceberg-adapter 与 go build -mod=readonly 不得失败)

    1. 嵌套模块 go mod tidy -diff:无差异 ✅
    2. go list -mod=readonly -tags=iceberggo ./...:通过 ✅
    3. go build -mod=readonly -tags=iceberggo ./...:通过 ✅
    4. make test-iceberg-adapter(普通 + -race):全包 ok github.com/matrixorigin/matrixone/pkg/iceberg/adapter/iceberggo ✅
    5. 提交内的 go.mod/go.sum 保持未修改 ✅(fixture 内置往返校验)

    环境注记:本地复验需给 CGO_LDFLAGS 显式加 -Wl,-rpath,<thirdparties>/lib -Wl,-rpath,<cgo>(macOS 下 make 子进程不继承 DYLD_LIBRARY_PATH,无 rpath 时测试二进制加载 libmo.dylib 失败)——这是验证环境配置,不是产品缺陷。

    回归交付

    范围外(不声称):生产 RowDelta、Full Iceberg SQL、MinIO 集成——本 issue 明确仅为模块 metadata/build 缺陷。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions