Skip to content

[Bug]: Coverage UT publication replay cleanup rejected at runner physical-memory reserve #33077

Done

Description

@iamlinjunhong

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Searched open and closed issues for the exact test and cleanup database, the physical-memory headroom rejection signature, and run 45095232202. Closed issue #32422 covers a different CREATE ACCOUNT fixture and has no at-failure memory measurement. The open TPCC case #29753 concerns a sustained production workload.

Branch Name

PR #32523 targeting main

Commit ID

PR head 6fa3f7fb4095830d89db5df9ed3118e1ebde68f2 and official main 4cadd4f2f6ed9444d8bdbf6e13053b5ac741863c.

Other Environment Information

Actual Behavior

At 01:51:36 UTC, pkg/embed.TestSnapshotDatabasePublicationReplayBoundaries/quoted_comment failed at snapshot_publication_replay_test.go:120 while running DROP DATABASE IF EXISTS pub_replay_quoted_comment in deferred cleanup.

Error 20101 (HY000): allocation owner=17 site=1 owner-name=selection: allocation account capacity exceeded
internal error: execution resource admission rejected: requested=24 used=0 cap=0; physical memory headroom: sampled_available=1071419392 safety_reserve=1073741824 unbacked_growth=0 growth_headroom=0 confirmation_attempted=true

The confirmed available-memory sample was 2,322,432 bytes below the 1 GiB safety reserve. Background task queries on the same CN reported the same limit at the same time. The producer exited 1 with one failing leaf test. Coverage then failed its prerequisite check because the producer did not publish a complete profile. It did not calculate a coverage verdict. The terminal CI Required step reported matrixone-ut-coverage: failure. Ordinary Ubuntu/x86 UT, job 137433527164 passed on the same attempt.

Expected Behavior

The coverage lane should have sufficient memory headroom for the embedded cluster and native SQL cleanup while preserving execution resource admission. The coverage consumer should receive a complete profile from a successful producer.

Steps to Reproduce

Use the exact head above and run the workflow's Linux amd64 coverage UT with its native prerequisites, selected packages, and instrumented packages. Inspect the cleanup of TestSnapshotDatabasePublicationReplayBoundaries/quoted_comment and the measured physical headroom at that point.

go test -mod=readonly -count=1 -json -short -v -tags matrixone_test \
  -timeout=20m -p 8 -covermode=set -coverprofile="$coverage_profile" \
  -coverpkg="$cover_pkgs" $test_scope

This is the linked CI occurrence. There is no local reproduction of the runner's memory pressure.

Additional information

  • Direct runner-capacity evidence comes from the memory sample at the failing allocation. Official main and the PR head have identical native selection, physical-memory sampling, admission, coverage workflow, and snapshot test sources. The failing cleanup and concurrent background queries use the native SQL path. They do not run the changed Iceberg writer.
  • The complete coverage UT diagnostics show only the embedded publication replay test active at the first rejection. All six packages directly changed by PR Fix Iceberg append memory pressure handling #32523 passed in the same run. The post-run runner snapshot showed 13 GiB available after the test processes exited. The process or cgroup activity that drove the transient low sample remains undetermined.
  • Planned CI action is one failed-jobs rerun for run 45095232202 after attempt 1 reaches a terminal state.

Activity

  1. self-assigned this
    on Nov 23, 2026
  2. iamlinjunhong commented on Nov 23, 2026

    @iamlinjunhong
    ContributorAuthor

    Another Linux/amd64 coverage occurrence in PR #32980 at head 3615089d4508d5944a8d320e086fcab2633bbbd0, run 45116535133, attempt 1.

    • In the UT Coverage producer, job 137500683597, pkg/embed.TestSnapshotDatabasePublicationReplayBoundaries/case_sensitive_noncollision failed during RESTORE DATABASE. Native selection for mo_tables requested 8 bytes. The physical-memory guard confirmed 1,064,120,320 bytes available against a 1,073,741,824-byte reserve, with zero growth headroom and zero unbacked growth. Subsequent cleanup and background catalog queries on the same CN returned the same denial. After the test processes exited, the diagnostic memory snapshot showed about 13 GiB available.
    • Go 1.27.1, CGo and go test -mod=readonly -count=1 -json -short -v -tags matrixone_test -timeout=20m -p 8 -covermode=set, with the workflow's 498 selected packages, 477 instrumented packages and coverage profile flags. Diagnostics and package results show pkg/embed as the sole failing package. ByteJSON, frontend, colexec, projection, compile, plan, SQL functions, SQL models and DML all passed.
    • The admission guard, OS sampling, test fixture and workflow paths are unchanged by this PR. The failed allocation is a native catalog scan during restore, and the log records the confirmed physical-memory sample below the reserve. The independent occurrence on PR #32523 hit the same guard in the same parent test during quoted_comment cleanup. The process-level cause of the low runner sample remains undetermined.
    • The coverage consumer, job 137515909347, stopped because the producer supplied no complete profile. CI Required, job 137524018089 reported matrixone-ut-coverage: failure. The ordinary Ubuntu/x86 UT, job 137500638903 passed. Attempt 1 is terminal, so the next action is a single failed-jobs rerun of this exact run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions