Repository navigation
test: extend multi-CN irregular index rebuild DML coverage - #29688
mergify[bot] merged 3 commits into
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review of 281ef66539617a502f49ccdd31f001629f9cecb9, against bab4b3286a0dd5683a9b291763817722233e586c. APPROVE — no blocking findings.
Design and scope
This is a targeted regression-test extension, not another production fix for #29566. The complete delta is one existing test file (+47/-6); production and documentation deltas are zero. It reuses the existing two-CN cluster, SQL helpers, generation oracle, and second-coordinator rebuild. It adds no cluster, rebuild, state machine, worker, retry, or alternate execution path. Named case fields make the added expectations easier to audit.
The new oracle is meaningful: FULLTEXT2 changes matching IDs from 1,3 to 2,3,4; HNSW changes both membership and ordering to 4,3,1. I traced the HNSW plan consumer: ordering uses the index-returned score, so changing id=1 from [1,0] to [9,0] is not hidden by simply recomputing distance from the source row. Result checks are complemented by a non-NULL, changed build generation; an ALTER no-op cannot pass solely on an already usable index.
The existing remote-scan evidence, source-row count, empty-input rebuild, and rollback checks remain. Resource ownership stays with the isolated cluster and existing connection/row cleanups. SQL calls and rollback cleanup have bounded contexts, the global placement switch is restored, and no new concurrent cleanup or unbounded growth path is introduced.
Independent validation
- Exact unmodified HEAD, darwin/arm64, Go 1.27.0, matching native build:
.agents/skills/mo-dev/scripts/mo-cgo-test -json -count=1 -timeout=240s -run '^TestIssue29566IndexRebuildCoordinator$' ./pkg/tests/sqlintegration/multicn
PASS, both FULLTEXT2 and HNSW; test duration 10.70 s. - Same environment and production code, with only the test file overlaid from the declared base: PASS, 9.70 s. These are single observations, not a benchmark. The added work is three DML statements and one flush per algorithm; the observed increment is about one second, with no extra rebuild.
- Independent negative control: a temporary Go overlay makes
TableFuncRequiresCoordinatorreturn false, reintroducing distributed builder placement without changing this PR's assertions. Both cases fail at the second coordinator's result check:- FULLTEXT2: expected
2,3,4, actual2,4. - HNSW: expected
4,3,1, actual empty.
This verifies that the extended test still detects lost remote builder writes, including loss of an unchanged source row. The fault injection is review-only and is not part of the PR.
- FULLTEXT2: expected
- Exact-head Ubuntu UT job passed. I checked the downloaded checkpoint artifact and execution script, not just the rollup: the owning
multicnpackage was built with-race, executed without a test-name filter, and finished with status 0 (05:08:54–05:10:18 UTC). - Exact-head SCA passed; local
git diff --checkand formatting inspection are clean.
Review closure and limits
There are no earlier human reviews or review threads to resolve; the only existing comment is the bot's paused-review notice. No source edits were made for this review.
This approves the bounded regression extension, not a claim of exhaustive CDC/crash-recovery coverage or a production performance improvement. BVT, upgrade and coverage jobs were skipped by CI routing; they are not represented here as executed. There is no production/data-format change, and mixed-version upgrade support is outside this test-only change.
|
Queued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 1 hour 29 minutes 13 seconds in the queue, including 1 hour 25 minutes 39 seconds running CI. Required conditions to merge
|
What this PR does / why we need it:
Validation