Skip to content

fix: publish partitioned CREATE INDEX metadata through ALTER - #32772

Merged
mergify[bot] merged 3 commits into
matrixorigin:mainfrom
aptend:fix/astra-meow-32211
Nov 16, 2026
Merged

mergify[bot] merged 3 commits into
matrixorigin:mainfrom
aptend:fix/astra-meow-32211

Conversation

@aptend

@aptend aptend commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Fixes #32211

What this PR does / why we need it:

Standalone CREATE INDEX could succeed on a partitioned table while SHOW INDEX, SHOW CREATE TABLE and FORCE INDEX could not see the logical parent index.

Route ordinary BTREE CREATE INDEX, including the existing UNIQUE form, through the same existing ALTER TABLE ADD INDEX transactional route used by ALTER. This publishes the logical parent and physical partition children together; it does not add a new partition index mechanism. Preserve quoted identifiers, serializable options, typed duplicate-name errors and existing paths for other index families. Add the CI test-readiness fence for the isolated SQL task-ownership test.

Validation:

  • Three actual native/CGo foreground test invocations passed; current owning-package coverage is 488 packages.
  • Pinned 510-package SCA passed with zero findings: make static-check-selected STATIC_CHECK_PACKAGES="$(cat /home/mo/.local/share/matrixone-matrix-meow-intake/batches/meow-32211/out/CI-scaoffline27/static-check-510-packages.txt)" GOLANGCI_LINT_CONCURRENCY=4. The frozen package file SHA-256 is 8df8832e0781d5524ac910aca409742c16b1f4bb2368388777e89465bcbe0dd8.
  • 25/25 real SQL checks passed, including typed 1061/1062 errors with same-connection reuse and exact catalog rollback when a later partition child fails.
  • Normal full-metadata MoTester run: 17/17 statements passed, with FAILED=0, IGNORED=0 and ABNORAML=0, including all three FORCE INDEX statements. Owned database, JVM and MO cleanup completed, with the all-four TCP/UDP post-census showing no active owned-port debt.

@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 15, 2026 •

Copy link
Copy Markdown
Contributor

Queue requested — the merge queue status continues in this comment ↓.

@XuPeng-SH

XuPeng-SH commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · done

Commit: 22a18559867e1bdb0a01b78c27ea950cd44d24a4

Review completed. Read the assessment.

@iamlinjunhong iamlinjunhong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed exact head 22a18559867e1bdb0a01b78c27ea950cd44d24a4 against main base e1a0b7d249c5abe4e46a1a6a3c033af27d32ce8f for #32211. No confirmed in-scope findings.

Checked the partitioned CREATE INDEX delegation, parent/child execution in the shared transaction, identifier and option serialization, duplicate-name admission, unaffected index-family routes, and the task-definition readiness fence and its cancellation/error paths. This is the first review; there are no previous review findings or author replies to reconcile.

The supplied exact-head CI snapshot contains 29 checks: 13 successful, 14 skipped, and 2 neutral. Therefore, not all checks passed; none are recorded as failed or pending. Successful checks include CI Required, UT, SCA, coverage, and compose BVT. Reused that snapshot; the PR description also reports focused SQL and MoTester validation, whose raw logs were not independently reproduced here. Local git diff --check and the read-only PR artifact check passed. Additional local tests were skipped because source inspection did not establish a specific uncertainty requiring a new service/test run.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: 22a18559867e1bdb0a01b78c27ea950cd44d24a4

Assessment: approve

The bounded CREATE INDEX delegation coherently reuses ALTER’s existing transaction owner while preserving identifiers, options and typed errors. The readiness fence retains terminal failures and existing race assertions. No actionable findings remain.

Model: gpt-6.1-sol / max

Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0

Validation:

  • Reviewed all nine changed files, closing issue #32211 and all three discussion entries. Source integrity and receipt/log reconciliation passed; see validation-audit.json.

  • Four complete normal suites passed: 7,156 root tests. All 13 changed/affected test roots passed.

  • Five affected task tests passed normally and under race detection. Adaptive stress passed 100 repetitions per readiness helper and one additional two-CN lifecycle run.

  • Frontend checks passed metadata publication, DML maintenance, quoted identifiers, BTREE UNIQUE, typed errors, connection reuse and exact late-child rollback. The merge-base control reproduced missing logical-parent metadata.

  • MoTester passed the exact 17-statement case twice with full metadata comparison, zero failed/ignored/abnormal statements and verified teardown.

  • Pinned analyzers passed all 510 packages under repository configuration. Formatting, diff, ordinary vet, isolation preflight and native provenance checks passed.

Limitations:

  • Two unrelated planner subtests were skipped. The isolated integration package ran the five affected tests. DDL/BVT checks used one CN; task lifecycle checks used two.

  • Author-reported broader executions lacked supplied receipts and were not counted. MoTester used hashed repository-bundled jars; optional Maven packaging failed at assembly.

@mergify mergify Bot added the queued label Nov 16, 2026
@mergify

mergify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into main as 7fcd9bd at 04:18 UTC

1 h 8 min in the queue, 1 h 6 min of it CI.

So far

  • ✅ Entered the queue Mon 16 Nov, 03:11 · rule main · triggered by rule Automatic queue on approval for main
  • ✅ Passed · in place
  • ✅ Merged 04:18 · 7fcd9bd · squash
3 merge conditions met
  • #review-threads-unresolved = 0 · required by GitHub branch protection
  • github-review-approved · required by GitHub branch protection
  • any of · required by GitHub branch protection:
    • check-success = CI Required
    • check-neutral = CI Required
    • check-skipped = CI Required

Times in UTC · dashboard · how the merge queue works

This branch was previously deployed

1 inactive deployment
ci — 97226b61 Deployed Nov 16, 2026 by mergify[bot]
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 size/XL Denotes a PR that changes [1000, 1999] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: CREATE INDEX silently no-ops on partitioned tables

4 participants