Skip to content

[Bug]: Coverage UT TestColumnsUpgradeManualFailFastThenComplete rejects CREATE ACCOUNT with cap=0 #32422

Closed as not planned

Description

@ck89119

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Searched open and closed issues for TestColumnsUpgradeManualFailFastThenComplete, upgrade_metadata_test.go, allocation account capacity exceeded, execution resource admission, and cap=0. No dedicated report for this coverage-UT failure was found. Related but not established duplicates: #29753 concerns TPCC memory pressure and authentication admission; closed #29832 concerns frontend tests inheriting a one-byte budget. Shared root cause is undetermined.

Branch Name

main-based PR #32414 (issue-32408-main)

Commit ID

25d55b442a59a31a55d55d8d166945a6ac0be2b6 (observed failing PR head; includes upstream main 6a2b299547). This is the observation revision, not an identified introducing commit.

Other Environment Information

  • OS/architecture: Ubuntu/Linux amd64 GitHub Actions runner.
  • Go: 1.27.1, CGo enabled.
  • Coverage UT: -mod=readonly -count=1 -json -short -v -tags matrixone_test -timeout=20m -covermode=set, with 483 instrumented packages, 504 selected test packages, and package parallelism 8.
  • The failing embedded-cluster log reports a 14 GiB cgroup limit and approximately 3.1 GiB process RSS during startup. These samples do not establish the exact memory/headroom state when admission failed.
  • Run 42591534496, attempt 1
  • Coverage UT producer job 129074582760

Actual Behavior

The coverage producer finishes with one failing test, github.com/matrixorigin/matrixone/pkg/embed.TestColumnsUpgradeManualFailFastThenComplete (8.61 s). Its fixture fails before the intended manual-upgrade/fail-fast assertions:

upgrade_metadata_test.go:163:
Error Trace: upgrade_metadata_test.go:163
             upgrade_metadata_test.go:165
             upgrade_metadata_test.go:99
             upgrade_metadata_test.go:388
Received unexpected error:
Error 20101 (HY000): allocation account capacity exceeded
internal error: execution resource admission rejected: requested=48024 used=0 cap=0
Messages: create account columns_upgrade_tenant ADMIN_NAME 'root' IDENTIFIED BY '111'

At 2026-11-09 09:31:47 UTC, the server first reports the same rejection in incrservice.create.cache.failed and process.go:747 create table for maybeCreateAutoIncrement while initializing information_schema.engines for the new account. The failure propagates to CREATE ACCOUNT and aborts fixture construction.

The raw JSON has two fail events: the test and its containing package. The coverage runner reports result=failed, reason=command_exit, and exit code 1, not a timeout. The subsequent Coverage job fails its prerequisite check because the UT producer did not publish a complete profile; no coverage-percentage verdict was calculated. CI Required is also a downstream failure, not a separate test failure.

Ordinary UT, SCA, and both executed BVT jobs on the same PR head completed successfully. That does not prove the coverage mode is equivalent or establish baseline/regression attribution.

Expected Behavior

The upgrade test should be able to construct its bounded metadata fixture under the supported coverage runner configuration and reach its actual fail-fast/recovery assertions. Resource admission must remain safe; investigate whether the runner budget, accumulated residency, test isolation, or admission state explains the zero cap. Do not bypass admission or weaken the test to hide the failure.

Steps to Reproduce

Observed once in the linked coverage job; there is no independent local reproduction or clean-main comparison yet.

  1. Use the recorded PR head, Linux/amd64, Go 1.27.1, repository native prerequisites, and the Coverage UT workflow's selected/instrumented package sets.
  2. Run the workflow's existing coverage command with package parallelism 8 and its declared resource limits. Preserve the package/test ordering and collect the full JSON output plus cgroup/process memory evidence.
  3. Inspect TestColumnsUpgradeManualFailFastThenComplete during stageReleasedMetadataPredecessor -> createColumnsFixtures, before the manual-mode restart.

A focused diagnostic control is:

GOTOOLCHAIN=go1.27.1 TMPDIR=/tmp/mo-upgrade-ci \
.agents/skills/mo-dev/scripts/mo-cgo-test \
  -short -tags matrixone_test -count=1 -v -timeout=300s \
  -covermode=set -coverprofile=/tmp/mo-upgrade-ci/upgrade.cover \
  -run '^TestColumnsUpgradeManualFailFastThenComplete$' ./pkg/embed

Create the short temporary directory first. This command narrows the selected and instrumented package sets, so it is a diagnostic control, not a claim that it reproduces the full-run memory conditions. Compare the same failing mode on a verified clean main baseline before assigning introduction or PR ownership.

Additional information

  • Full coverage diagnostics artifact: ut-coverage-report.json (516,563,822 bytes), the per-test output, status/progress/phase timing, and runner diagnostics.
  • Coverage incident summary artifact.
  • Blocked coverage aggregation job.
  • PR fix(plan): preserve prepare context for SHOW COLUMNS WHERE parameters #32414 changes SHOW WHERE prepare-state forwarding and its regressions. It does not change the upgrade fixture, CREATE ACCOUNT, auto-increment initialization, or execution-resource budget sources; the failed fixture SQL does not exercise SHOW parameter rewriting. This bounds the immediate failure path but is not a clean-baseline proof that the issue predates that PR.
  • Memory exhaustion, OOM, leakage, test-state contamination, and introducing-commit attribution remain unproven. The zero-cap rejection alone is not evidence that the protection is incorrect.
  • Follow-up: capture the actual admission inputs at rejection, compare fresh versus ordered coverage runs and clean main, and retain deterministic fixture/resource isolation once the owning boundary is identified.
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