Skip to content

fix(metadata): isolate invalid FULLTEXT view dependencies - #32922

Open
Ariznawlll wants to merge 4 commits into
matrixorigin:mainfrom
Ariznawlll:codex/fix-fulltext-view-metadata-20261119
Open

Ariznawlll wants to merge 4 commits into
matrixorigin:mainfrom
Ariznawlll:codex/fix-fulltext-view-metadata-20261119

Conversation

@Ariznawlll

@Ariznawlll Ariznawlll commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

What type of PR is this?

  • BUG

Which issue(s) this PR fixes:

Fixes #32763

What this PR does / why we need it:

Dropping a FULLTEXT index used by an existing view used to make unrelated information_schema.COLUMNS queries fail with error 1191. Both metadata readers now classify the typed missing-index error as an invalid view dependency. The bulk scan retains other metadata rows and reports warning 1356 for the invalid view. The shared request retains its definition-stage provenance check, so root lookup and authorization failures still propagate. Recreating the index makes the view visible in metadata again.

The regression test retains the original cross-database catalog JOIN with hex/CONVERT predicates and checks the result before index removal, while the index is absent, and after recreation. It also checks bulk metadata rows, the warning, and the error when describing the invalid view directly.

Local validation on a single-CN test instance: clean main reproduced error 1191 after index removal, while the ordinary table remained readable and index recreation restored metadata. The patched service passed the new mo-tester case twice with 27/27 statements each and verified fixture cleanup. The View metadata and table function test selections passed with the repository CGo test wrapper.

Scoped molint and golangci-lint checks, gofmt, and git diff --check passed on the delivered tree. The SQL regression is selected by BVT group 0.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@mergify

mergify Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request

XuPeng-SH added a commit that referenced this pull request Nov 27, 2026
## What type of PR is this?

- [ ] API-change
- [ ] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [x] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

Related to #33177 and #33176.

## What this PR does / why we need it:

Enable the existing Coverage standby opt-in from the default-branch
workflow for PRs targeting exactly `4.2-dev`. Pin the dispatcher, both
shared workers and the contract to a single CI revision with the
approved release fixture, bounded retries for transient metadata reads,
the selection deadline, and cleanup of accepted workers whose dispatch
receipts arrive late. Coverage for `main` and `4.2-dev` uses the same
shared CS queue and Shanghai IDC fallback. Their legacy route also runs
on Shanghai IDC. Eligible `4.2-dev` PRs run OSS and COS checks in a
focused `pkg/fileservice` job on Shanghai IDC. The job requires passing
SDK and streaming-write tests for each provider's fixture before
publishing its profile. The release report requires that profile and
both selected group profiles. The selected OSS/COS artifact is
downloaded by ID and extracted directly into the merge directory. The
branch also includes the #32922 site-retry opt-in from #33401. [CI
#497](matrixorigin/CI#497) · [CI
#498](matrixorigin/CI#498) · [CI
#500](matrixorigin/CI#500)

All 69 Node tests passed against the current CI pin. The
cross-repository contract recovers HTTP 503 during result polling and
the prior-grant check, then dispatches one replacement and preserves
other workers. The 127 Linux tests cover recovery after 40 seconds of
HTTP 404 and 60 seconds of indexing delay. On release commit `96e18ab`,
the actual provider workflow command rejected malformed provider configs
after `go test` returned a passing package result. A clean `make cgo`
and actionlint passed. An offline replay of the pinned download action
selected the prior-attempt profile by ID and merged all three profiles
using the workflow command.

CI #497, #498 and #500 are merged. All four Coverage references use CI
main commit `f64bda11be08c41efc47705acaa41dfe2795d5f5`. Its tree matches
the reviewed CI #500 head. The branch is synchronized with MatrixOne
main `864bceb`. The four approved S3 fixture blobs match the current
`4.2-dev` tip.

A fresh `4.2-dev` PR run after rollout will verify the live Shanghai OSS
and COS checks, the combined profile, and failed-only retries. The
Shanghai provider connections and end-to-end runtime have yet to be
measured in the new route.
@XuPeng-SH
XuPeng-SH force-pushed the codex/fix-fulltext-view-metadata-20261119 branch from 02db9ac to 365f747 Compare November 27, 2026 19:36
@mergify mergify Bot added the kind/bug Something isn't working label Nov 27, 2026
@matrix-meow matrix-meow added size/M Denotes a PR that changes [100,499] lines and removed size/S Denotes a PR that changes [10,99] lines labels Nov 27, 2026
mergify Bot pushed a commit that referenced this pull request Nov 28, 2026
## What type of PR is this?
- [x] Test and CI

## What this PR does / why we need it
Pin the Coverage standby entrypoint, CS worker, Shanghai IDC worker and cross-repository contract checkout to matrixorigin/CI#499 merge SHA `1f3fcaf713bd56722031a72068469fd2f5ba417b`.

This is a pin-only update. Capacity-aware initial placement remains restricted to the isolated #32922 trial. Production routing, the existing site-retry opt-in, and the one-hour Shanghai fallback are unchanged. Align the standby pin in #33420 separately if it lands after this PR.

## Validation
- actionlint workflow validation; 10 MatrixOne identity and pinned cross-repository retry/cleanup tests; 144 CI Coverage tests on the exact merge SHA.
- [Prior #32922 isolated trial](https://github.com/matrixorigin/matrixone/actions/runs/46022114633): both groups passed and coverage merged. No manual rerun was triggered.
- An additional broad local test run hit a missing local Go installation in the unrelated static-analysis suite.

Approved-by: XuPeng-SH <[email protected]>

This branch was previously deployed

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

Labels

kind/bug Something isn't working kind/test-ci size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Invalid FULLTEXT view aborts unrelated information_schema.COLUMNS queries with error 1191 (regression)

3 participants