Skip to content

[Bug]: intermittent FULLTEXT2 index-not-loaded failure in TestSQLFileAccessTenantStageCDC #32258

Closed

Description

@iamlinjunhong

Failure signature

pkg/embed / TestSQLFileAccessTenantStageCDC / documents MATCH / fulltext2 index not loaded

On official repository PR #32253 at exact head 5880f42a8bd2430cbbf1e512af0f03acf49baeaa, run 42026946931, attempt 1 failed in the Ubuntu/x86 coverage producer. This issue tracks a non-PR flaky candidate, not a confirmed fix or a claim that the product error is harmless.

Observed failure and affected checks

The original Actions diagnostics artifact ut-coverage-diagnostics-attempt-1 contains the complete JSON event stream. Its actual assertion, omitted from the short job-tail summary, is:

select id from documents where id=2 and match(fpath) against('matrixone')
sql_file_access_auth_test.go:509:
    Received unexpected error:
    Error 20101 (HY000): internal error: fulltext2 index not loaded
    Test: TestSQLFileAccessTenantStageCDC
--- FAIL: TestSQLFileAccessTenantStageCDC (44.70s)

Attribution evidence

  1. Read all three failed-job logs and the full coverage JSON stream. There are zero build failures; no other package or test fails. This is an intermittent runtime assertion/internal-error result, not a compilation, static-check, race-detector, security-gate or coverage-threshold failure. No infrastructure cause is claimed.
  2. The exact failing test passes 3/3 consecutive runs on PR head: 114.41s, 90.18s, 89.84s, with final command exit 0. Local mode matches CI's Go 1.26.4, CGo enabled, -short, -tags=matrixone_test, and no race flag. Host is Darwin/arm64; these focused local runs omit CI's repository-wide coverage instrumentation and concurrent package workload.
  3. The complete PR diff changes COPY ALTER column-impact tracking, copy-source lineage, deduplication and their tests. Its production entry point is buildAlterTableCopy. The failing test/helper use CREATE, INSERT, UPDATE, MATCH, stage and CDC operations, with no ALTER TABLE. The exact bytes at target base and head are identical for pkg/embed/sql_file_access_auth_test.go, pkg/embed/async_datalink_auth_test.go, pkg/fulltext2/search_cache.go, pkg/vectorindex/cache/cache.go, pkg/sql/colexec/table_function/fulltext2_search.go, and pkg/iscp/fulltext2_consumer.go. No change to the failing search/cache lifecycle, case or CI harness is included in this PR. In the same exact-head CI artifact, the planner package and all nine directly relevant regression groups pass.
  4. Official target 4.2-dev remains at ebf03dc42bf25ba00018da019783e1037299d1ae (verified by GitHub API and official remote). Its source-equivalent clean baseline view passes the identical focused test 3/3 consecutive runs: 116.97s, 89.76s, 90.33s, final exit 0. Comparison uses the exact Go/native/module inputs verified below. Non-reproduction on both sides is the flaky-candidate result; no clean Linux coverage reproduction or confirmed root cause is claimed.

The causal mechanism is still to be isolated. A useful next investigation is ownership across FULLTEXT2 load, cache eviction and cache retry; this is a hypothesis, not an established root cause. No unrelated cache code or assertions were changed to make this PR green.

Reproduction / comparison commands

With native dependencies built from the target revision's pinned archives:

GOTOOLCHAIN=go1.26.4 GOWORK=off GOFLAGS= GOEXPERIMENT= \
  .agents/skills/mo-dev/scripts/mo-cgo-test \
  -short -tags=matrixone_test -count=3 -timeout=10m -v \
  -run '^TestSQLFileAccessTenantStageCDC$' ./pkg/embed

The target-base comparison uses the same command with -overlay <baseline-overlay.json>. This is a Go source overlay in the clean managed lane, not a second Git checkout: every changed Go path is replaced with git show ebf03dc42bf25ba00018da019783e1037299d1ae:<path>, both head-only Go test files are removed from package enumeration, and all 4,695 tracked Go/module/native source inputs are checked against their baseline Git blob IDs. Native source, module metadata and test runtime resources are unchanged between base and head. This keeps the branch and shared Git metadata untouched while compiling the exact official target-base source inputs. Local commands, input verification and logs are retained in the task evidence directory; original CI diagnostics remain in the run artifacts.

Searches of open and closed issues for the exact test and normalized fulltext2 index not loaded signature found no matching tracker. The closed HTTP trace race issue #30463 is a different error/mechanism and is not used as comparison evidence.

CI follow-up

After recording this evidence, request one failed-jobs rerun of run 42026946931. If the same signature fails again, collect fresh attribution evidence under this tracker rather than repeatedly rerunning or opening duplicates.

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