Skip to content

[Bug]: lifecycle refresh test account cleanup exceeds deadline in Ubuntu race UT #30422

Closed

Description

@iamlinjunhong

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Searches covered the exact root test, LifecycleRefresh, refresh account cleanup, 28079, and cleanup/deadline signatures across open and closed issues. #30322 covers a different published-view cleanup fixture. #30281 covers the separate shell cancellation failure in this run.

Branch Name

codex/loom/develop/7e1ad72b85b7fb288bfef5088fb2a95dc7e1fdf2e0d61ba24a0c4938e078cc6c, PR #30399.

Commit ID

ce2d6da71de0175eb0165a783cffab96d3dc2256.

Other Environment Information

Actual Behavior

The account lifecycle test's SQL and lock assertions finish, but its registered cleanup callback exceeds its 30-second cleanup context while dropping the rejected account:

[TEST]: TestIssue28079LifecycleRefreshAndViewFailure
[START_AT]: 2026-10-16T13:08:30Z
[END_AT]: 2026-10-16T13:09:32Z
issue_28079_test.go:398: issue 28079 refresh account cleanup: drop issue_28079_refresh_rejected: context deadline exceeded
--- FAIL: TestIssue28079LifecycleRefreshAndViewFailure (62.26s)

The cleanup uses one 30-second context for two DROP ACCOUNT IF EXISTS statements and a catalog-count verification. Around the same time the embedded cluster logs logservice proposal/health/HAKeeper and task-runner timeouts. Those logs show runtime distress; they do not establish whether storage, scheduling, a product wait or the shared cleanup budget is the primary cause. No speculative timeout increase or product patch is proposed.

The complete failed job logs and the 773,173 events in diagnostic artifact ut-diagnostics-38885355483-1-all identify only this root and TestHeavyPlanCancellationStopsWritersBeforeMerge (separately tracked by #30281). No terminal compilation/type/static-analysis/security-gate, panic or data-race failure is identified. No OOM kill is recorded in the runner checkpoints.

Expected Behavior

The fixture should remove both accounts, verify absence, and drain its owned operations before releasing the shared cluster. An intermittent cleanup deadline should remain visible with enough diagnostics to explain the actual wait; skipping the test, weakening cleanup assertions or changing unrelated CSV code would hide evidence.

Steps to Reproduce

CI occurrence uses the entry point above. The following logical bounded test invocation was used on the exact PR head and clean official-main source 8669eedae682f7aea093c6cab3d1b8877f91a8dc. Native flags are supplied separately; actual baseline execution also adds -ldflags:

GOWORK=off CGO_ENABLED=1 go test -mod=readonly -vet=off -race -short -v -json \
  -tags=matrixone_test -p 2 -timeout=180s -count=3 \
  -run '^Test(Issue28079LifecycleRefreshAndViewFailure|HeavyPlanCancellationStopsWritersBeforeMerge)$' \
  ./optools ./pkg/tests/issues

Native include/link/rpath inputs follow the repository mo-cgo-test wrapper. PR controls use that wrapper directly; the clean exported main archive uses the same native flags and the PR's read-only native artifacts. cgo/ and thirdparties/ source trees are identical at both revisions. The wrapper itself resolves a Git root and therefore is not invoked inside the metadata-free baseline archive.

Additional information

Bounded non-PR flaky-candidate evidence:

  1. Complete failure logs and artifact identify a runtime cleanup deadline, excluding compile/type/static/security failures. The shell fixture's separate failure is tracked under [Bug]: Ubuntu UT cancellation fixtures leave undrained helpers or omit plan writer reports #30281.
  2. On the exact PR head, three consecutive executions of the exact failing lifecycle test pass: 10.04s, 4.55s, 4.75s. Shell cancellation passes all three executions as well.
  3. The complete PR diff changes only CSV splitting, its syntax-error classifier, external-scan range assignment, and focused tests (six files). Account creation/drop and catalog queries never enter compileExternScanParallelReadWrite, CSV parsing or boundary planning. The shell fixture executes copied runner scripts with fake Go/writer commands and imports only standard-library packages. The failing test, account/catalog cleanup mechanism and CI harness are not changed by this PR.
  4. Clean official-main 8669eedae682f7aea093c6cab3d1b8877f91a8dc passes the same focused invocation three consecutive times: lifecycle [19.18, 11.3, 11.55] seconds; shell cancellation [0.29, 0.29, 0.28] seconds. Both package commands exit 0. All 11,294 archived source-file hashes match their pre-test values. No additional Git worktree or branch was created.

Local controls use Darwin/arm64, Go 1.27.1, CGo, -race -short -tags matrixone_test. They do not reproduce Linux process-group behavior, full-suite scheduling pressure, or the original Linux timeout. This is a bounded non-PR flaky candidate, not a claim that a main failure was reproduced or that the defect is fixed.

The exact-head Linux CI's changed closure passes in this same run: pkg/sql/colexec/external 51.282s, pkg/sql/compile 17.145s and pkg/sql/util/csvparser 1.752s, including every added regression test. SCA and both executed BVT lanes also pass. After recording both underlying failures, one failed-jobs rerun of this run is planned. No unrelated source is modified.

Activity

  1. self-assigned this
    on Oct 16, 2026
  2. added 2 commits that reference this issue on Oct 16, 2026
    57b5b46
    47b9690
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions