Skip to content

test(issues): SNAPSHOT feature-registry gate flakes under UT coverage #28259

Closed

Description

@iamlinjunhong

CI failure

Stable signature

TestIssue23861FulltextSnapshotRestore failed while executing create snapshot ... for account sys:

internal error: query feature registry for SNAPSHOT failed
Error 20101 (HY000): internal error: query feature registry for SNAPSHOT failed

The coverage gate then failed because the required UT-coverage producer failed: coverage merge skipped because at least one required producer was skipped or failed.

Attribution evidence

  1. The complete failed job log was inspected. This is a nondeterministic embedded-cluster assertion, not a compile/type/static/security failure.
  2. On the exact PR head, the selected test was first listed and then passed three consecutive times with the CI-equivalent CGo/tag mode: .agents/skills/mo-dev/scripts/mo-cgo-test -short -v -count=1 -timeout=300s -tags matrixone_test -run "^TestIssue23861FulltextSnapshotRestore$" ./pkg/tests/issues.
  3. The PR diff does not modify pkg/tests/issues, the feature-registry/snapshot gate, or the CI coverage harness.
  4. A clean detached worktree at current official up/main 0cee094f15b1931d2911a5a2b1ce01447454b367 ran the same selected test with the same CGo/tag mode three consecutive times successfully. The temporary CGo links and worktree were removed afterward.

Reproduction

Run the command above in a clean checkout with MatrixOne CGo inputs, preferably under the all-package parallel coverage workload. The observed CI failure happened before the test's concurrent restore rounds, while SNAPSHOT feature-registry lookup was being initialized.

A single failed-jobs rerun of run 33959732740 is planned after this intake.

Activity

  1. added
    severity/s0
    ai-easy
    and removed on Sep 5, 2026
  2. gouhongshen commented on Sep 5, 2026

    @gouhongshen
    Contributor

    Investigation complete for #28259.

    The CI log shows the failure at the first create snapshot ... for account sys: the lifecycle gate performed a no-op UPDATE on the bootstrap-created SNAPSHOT feature-registry row, and the following quota query could observe two MVCC versions in a pessimistic RC transaction. The strict single-row registry check then returned query feature registry for SNAPSHOT failed. The failure occurred before the concurrent restore rounds.

    Draft PR #28262 changes pessimistic transactions to use SELECT feature_code ... FOR UPDATE, which keeps the row lock without creating a new MVCC version. Optimistic transactions retain the existing UPDATE write barrier and write-write conflict semantics. The exact regression test passed three consecutive times after the change, all three affected packages passed, and the focused lifecycle race test passed.

    The issue remains open for manual validation.

  3. gouhongshen commented on Sep 5, 2026

    @gouhongshen
    Contributor

    PR #28262 is trying to fix this issue.

  4. gouhongshen commented on Sep 5, 2026

    @gouhongshen
    Contributor

    PR #28262 has merged and is awaiting manual validation. The issue remains open.

  5. iamlinjunhong commented on Sep 6, 2026

    @iamlinjunhong
    ContributorAuthor

    2026-09-06 follow-up: run 34006770056 (attempt 2)

    Failed signature from the complete producer log:

    TestIssue23861FulltextSnapshotRestore
    internal error: query feature registry for SNAPSHOT failed
    

    The coverage gate was consequential: coverage merge skipped because at least one required producer was skipped or failed.

    Attribution evidence:

    1. The complete failed job log was inspected. It is an embedded-cluster test assertion during SNAPSHOT feature-registry lookup, not a compile, type, static-analysis, or security failure.
    2. On the rebased PR head df15b33ad26790656078f38cccca3c97b666ff47, the exact selected test passed 3/3 with .agents/skills/mo-dev/scripts/mo-cgo-test -short -tags matrixone_test -covermode=set -count=1 -timeout=240s -v -run ^TestIssue23861FulltextSnapshotRestore ./pkg/tests/issues.
    3. The PR leaves pkg/tests/issues, pkg/frontend/feature_limit.go, pkg/frontend/snapshot.go, and the CI harness unchanged. Its compiler edits are restricted by param.Format == tree.ARROW and Arrow LOAD DATA execution gates, which this fulltext/SNAPSHOT test never selects.
    4. A clean detached worktree at official up/main 109bf926fdb31de31e0578ad0fb17be160d7d8d0 passed the same exact CGo/tag/coverage-mode command 3/3. Each pass performed the feature-registry update successfully (AffectedRows: 1).

    This is another occurrence of the tracked flaky signature. Run 34006770056 was already rerun once and is now attempt 2, so no second rerun is requested for the same run; the rebased PR push will create a fresh CI run.

  6. gouhongshen commented on Sep 9, 2026

    @gouhongshen
    Contributor

    Recurrence on PR #28272 at exact head ed59eeb27eb485b30666da443db69298107a3547:

    • workflow run 34338613927, attempt 1
    • producer job 102424080218
    • TestIssue28317ViewSnapshotGateOrderSQL/ordinary_tenant_SNAPSHOT_and_PITR_restore and TestIssue23861FulltextSnapshotRestore failed with the existing stable signature: internal error: query feature registry for SNAPSHOT failed
    • the failure was in pkg/tests/issues; PR fix(frontend): persist data branch database identity #28272 does not modify the feature-registry gate or either failing test

    The PR has since rebased onto newer main, which will trigger a fresh CI run. This issue remains the owner for the recurrence.

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

Metadata

Metadata

Assignees

Labels

ai-easykind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions