Repository navigation
Conversation
Wait for the complete FULLTEXT2 result and HNSW index plan instead of storage rows that can predate the last branch write. Use the existing freshness cadence control during this serial BVT and check both its application and restoration across CNs. Preserve the result, plan, branch diff, and failed-job assertions while removing obsolete readiness variables and prepared statements. Validated with single-CN and separate-process two-CN BVT runs, a warm remote-cache challenge, and a timeout/cleanup negative control.
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? |
|
mo-bot review · Commit: Review belongs to an older commit; it is not a review of the current head. |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: a7fcc6d5de0c48e27022c96e1eff60380ed2ba1a
Assessment: request_changes
Complete source review found a coherent design and no confirmed code defect. The change strengthens readiness checks, preserves existing oracles, and removes obsolete guards. Required live BVT evidence remains unverified.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1586-7a01-9000-d45e20995cf8 · slot 1 · generation 1
- P2
test/distributed/cases/git4data/branch/edge/branch_multi_index_restore_init.sql:45: Validation requirement: exercise the new waits with a stale remote reader and verify cleanup when either wait times out.
Impact: Source and comparator checks cannot establish actual cross-CN convergence, successful cadence restoration, or clean same-instance reuse.
Evidence: The current evidence.json has empty local_validation and no completed BVT result. The PR describes successful macOS runs and failure controls but supplies no matching source/build identities, commands, reports, service logs or exit records. The repository testing-contract requires real normal-comparison execution and teardown proof. Attach the existing single-/two-CN runs, same-instance reruns and failure-cleanup controls with candidate provenance; rerun only evidence that cannot be recovered.
Validation:
-
Preflight passed: checks/1792903838064702902-4.json and preflight.log.
-
Parser/comparator probe passed on byte-identical candidate files: 27 statements, two bounded waits, expected results accepted, missing FULLTEXT2 ID 3 and HNSW table-scan plan rejected. Receipt checks/1792903838613156114-3.json; log case-contract.log.
-
Frozen-range git diff --check passed: checks/1792903870880107245-3.json and diff-check.log.
-
All check receipts matched the assigned head and clean source fingerprint. Detailed review record: /home/xupeng/.local/state/mo-bot/jobs/a9e9a686513c44bfe0801eca/attempt-1/review-evidence.json.
Limitations:
-
No live SQL or native test was executed; the comparator probe does not replace BVT execution.
-
The linked issue's full text was absent from the supplied evidence.
-
Production code is unchanged. Faster cache sweeps and repeated queries add test-fixture work; no runtime measurements were supplied.
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 2e3b374469c5536315c0414e152b27786ebf008a
Assessment: request_changes
Complete source review found a coherent test-only design and no confirmed implementation defect. Existing oracles are preserved and cleanup ownership improves. Required execution evidence remains unverified because the referenced artifact bundle is unavailable.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1586-7a01-9000-d45e20995cf8 · slot 1 · generation 1
- P2
test/distributed/cases/git4data/branch/edge/branch_multi_index_restore_init.sql:45: Validation requirement: verify stale-reader convergence and wait-timeout cleanup, together with the changed snapshot fixture's cancellation/FailNow cleanup.
Impact: Make the retained validation bundle accessible before approval: single-/two-CN comparisons and same-instance reruns, timeout controls and teardown logs, and focused/owning normal/race fixture results with source/build/exit provenance. Recover existing runs first; rerun only missing validation. This is an evidence requirement, not an observed production failure.
Evidence: All four source hashes match the PR description, but /home/xupeng/.codex/issue-to-pr/matrixone/pr31072-31075 does not exist on the coordinator host. local_validation is empty, and the frozen CI snapshot supplies no completed relevant UT/BVT result. The recovered comparator receipt verifies identical SQL/result bytes and negative oracles but explicitly executed no SQL. The PR's commands and terminal excerpts cannot be reconciled with the missing receipts, reports and logs.
Validation:
-
Verified frozen HEAD, clean source, complete four-file patch equivalence, advertised SHA256 values, Go formatting and git diff --check.
-
Reconciled retained comparator evidence against unchanged SQL/result bytes: 27 statements, two bounded waits, expected results accepted, missing FULLTEXT2 ID 3 and HNSW table-scan plan rejected.
-
Traced all snapshot harness consumers, EnginePack lifetime, transaction/batch ownership, cleanup order, freshness-control fanout and mo-tester timeout continuation.
-
Audit receipt checks/1792909286688242763-2.json matches the current HEAD, clean source fingerprint and evidence-audit.log. Evidence and review-map.json are retained in /home/xupeng/.local/state/mo-bot/jobs/9784e4d1ac9d18dc4de696f2/attempt-1.
Limitations:
-
No local native tests or live SQL were executed. Author-reported normal/race, warm-reader, timeout-control and runtime results remain unverified pending artifact recovery.
-
Production code is unchanged. Additional polling and cache sweeps affect the test fixture; bootstrap, synchronous merge helpers and pack shutdown still depend on the outer test timeout.
-
Full linked-issue bodies were not supplied; review used preserved PR descriptions, frozen sources and available comments.
|
Incorporated into #31076 at |
) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue #31074 — Closes #31074 issue #31063 — Closes #31063 issue #31065 — Closes #31065 issue #31075 — Closes #31075 ## What this PR does / why we need it: Async index initialization can conflict with account teardown, and periodic watermark publication can deadlock against database retirement. Branch-index readiness also needed to cover the actual writes, while the snapshot fixture consumed a second deadline before bootstrap. - Keep one standalone account-drop transaction owner. Retry nested database FastFail only after nonblocking proof of successful abort cleanup for the captured generation. Preserve the target account ID, rebuild attempt-local work, and exclude borrowed transactions, uncertain commits and postcommit replay. Limit to five attempts with cancellable backoff. - Make periodic watermark writes use the existing FastFail option, whole-batch transaction/reservation rollback and next flush tick. - Wait for complete FULLTEXT2 results and an HNSW index plan; preserve indexed/exact-distance, branch-diff and failed-job assertions. Temporarily shorten the existing cluster-wide freshness cadence and verify restoration. - Reuse EnginePack's bounded lifetime after bootstrap, immediately register cleanup, and give rollback a separate cancellation-independent bound. Preserve all snapshot/merge/rollback scenarios. - Incorporate #31072. Rebase the three original patches onto main `1732bb3297f598bc9a90a41b8c5e4c9557cf0e9c`; stable patch IDs and the 28-file PR delta are unchanged. Resulting head: `d4917342ad2496d455d8265a46172c861a0ca2dd`. Ordinary SELECT/DML gains no additional SQL, transaction or polling. Persistent contention can exhaust the bounded account retry or defer watermark publication. The temporary `1s` cache ticker produces a freshness sweep every fourth tick plus housekeeping; no throughput benchmark is claimed. ### Validation on the rebased head Linux amd64, Go 1.27.1 / clang 19.1.7, CPU build. New main changes ISCP initialization and internal session/temporary-table access, so affected runtime and SCA checks were rerun. - **Owning/consumer race:** full `frontend`, `iscp`, `txn/client`, `vm/process`, `vectorindex/sqlexec`, `sql/compile` suites pass: 4,888 top-level passes, one existing in-test skip (`TestRuleCacheDoubleCheckLocking`). No test exclusion or short mode. Includes same-generation cleanup, watermark rollback/retry, session lending/masking, clone allocator context restoration and executor reuse. - **Targeted race:** 14 roots across integration/multicn, engine tests, planner and table functions pass. Covers real async DROP contention, session owner/attacker isolation with background index maintenance and teardown, all snapshot roots, temporary-access controls and long physical identities. - **Independent CN processes:** B warms both old index generations before A's writes. B logs stale decisions and generation-change evictions, then HNSW reloads from two to three rows. Fulltext returns `1,3`; indexed and independent distance results are `3,2`; branch diff=2 and failed jobs=0. Convergence **5.303 s**. Settings restore on both CNs, B's active ticker resets, catalog/job teardown succeeds and both processes exit normally. - **Exact original BVT:** normal mo-tester comparison on the same surviving process pair **27/27**, zero failed/ignored/abnormal. Previously validated timeout/recovery, constructor FailNow/cancellation and adaptive stress controls are reused where their mechanisms are unchanged. - **SCA/build:** standard vet, custom molint and configured incremental lint pass across the 11-package affected/consumer closure. Configured lint has zero issues; all 27 custom diagnostics match unchanged base functions/files. New service binary identifies this head with `vcs.modified=false`; matching native provenance, formatting and diff checks verified. - Required `gpt-6.1-sol / xhigh` rebase design: `01a17315-1bcd-7552-9b24-30c103344318`. Final overall review **PASS**: session `01a17327-06ae-7852-880a-22a23bf8dd08`; no unresolved material blocker. Commands, source fingerprints, terminal receipts and raw evidence are retained outside tracked source at `/home/xupeng/.codex/issue-to-pr/matrixone/31076/rebase/` (`validation-audit.json`, `remote-proof-audit.json`, `integration-audit.json`). Rebased-head GitHub CI results are not yet verified; local checks do not claim green merge CI. No merge or GPU validation is claimed.
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #31065
Fixes #31075
What this PR does / why we need it:
The branch-index restore BVT can observe an earlier durable index generation before the branch UPDATE and INSERT reach its reader. Its storage-existence checks allowed FULLTEXT2 to return only ID 1 instead of IDs 1 and 3, or HNSW to use its table-scan fallback before the required index plan became ready. Wait for the complete FULLTEXT2 result and the HNSW index plan with bounded
wait_expect. During this serial BVT, use the existing cluster-wide freshness cadence at 1s, check partial RPC failures, and restore the default cadence at exit. Preserve the exact results, both index-plan assertions, independent distance-expression control, branch diff, and failed-job assertions.The snapshot rollback fixture also shared a separate 60-second deadline across engine bootstrap, setup, flush/merge, transfer and commit. In issue #31075, the mixed-tombstone/transferring-statement cell exhausted that deadline at commit after 60.21s. Reuse the existing EnginePack five-minute context, created after bootstrap, without renewing the work budget per operation. Register acquired transactions and the pack immediately with
t.Cleanup; active rollback gets a bounded cleanup context that preserves tenant values after work cancellation, and a rollback error cannot suppress pack cleanup. Release locally owned batches and log stage durations/remaining budget. Keep all nine merge/rollback cells, the original fixture size, and every result oracle.Production code is unchanged. The original CI log proves deadline exhaustion; the underlying I/O latency cause remains unknown. Bootstrap, synchronous merge helpers and pack shutdown still rely on the outer test timeout. The BVT assumes a clean serial instance with the default cadence; 1s is the base cache ticker, not a one-second freshness guarantee.
Validation on Linux amd64, Go 1.27.1 and clang 19.1.7 CPU native libraries:
./pkg/vm/engine/testnormal suite: 168 top-level tests / 48 subtests passed (147.845s); two unchanged existing skips are excluded from the pass count.go vet, repository molint and golangci-lint passed (0 issues), including the staged new test file.2e3b374469(agent/root/pr31072_astra_review, recordreview.md).Reproduction commands and artifact identity
Validated commit:
2e3b374469c5536315c0414e152b27786ebf008a. The complete intended change is four test files against merge baseaeaa273daf588a9988ba423915d3ae6b8c82124a. The two Go test files have SHA2569182f26f7a74d32f2b48c7e83e871890a86912e222ca0fa2f8cb5b720f43fbf8and2c5c286437a29aa58199d3802dbd67b2093c0f875c847c1b88fe2f383a49401e. The SQL/result pair remains the existing PR revision, with SHA256c5212b4b63dca8d2011084f742b898d4f0f5f9a235c70c540f854a979dee75b6/2b7324c7ff91e28ec93b900c500abeb8854f051f0e2580b2f1b890b32db42d54.Each exact adaptive run uses the same race binary with
N = clamp(floor(30 / T), 1, 100)from the owning-race measurement and a 120-second outer timeout:TestSnapshotAdvanceCleanupTest_RCSnapshotAdvancePreservesUncommittedDeletesTest_RCSnapshotAdvanceHarnessRollbackTest_RCSnapshotAdvanceHarnessCommitTest_RCSnapshotAdvanceHarnessSubsequentStatementTest_RCSnapshotAdvanceHarnessStatementRollbackTestRCLineageSnapshotPreservesUniqueReplacementsTestTransferPartialIORecoveryTestRCMemoryTransferWidePKBoundaryTestRCSnapshotRollbackAcrossMergeService binary SHA256:
fd7d3e0d492d136cb1e97b7a73be9751faa4e501822750b52dd7398939d9313e, built froma7fcc6d5de0c48e27022c96e1eff60380ed2ba1a; subsequent changes are Go test files only. Release build uses GOAMD64=v3 / GOEXPERIMENT=simd. Fresh DISK-V2 local storage, RC/pessimistic configuration; separate CN processes on SQL ports 16772 and 16773. SQL and ISCP readiness were checked before comparison.mo-tester clean revision:
309a0ca650e0c55e90292767fd61e4976818d66d; executed JAR SHA256:905cf05154295eaed552bd445f122206c48d6f22debf2bc55872fff388a9f3f5. Runio.mo.Testerwith the verified configuration/classpath andpath=test/distributed/cases/git4data/branch/edge/branch_multi_index_restore_init.sql method=run rate=100 nometa ignore pprof. The second run used the same running instance and checked database absence before starting.Actual mo-tester terminal excerpts:
After each final drop, both CNs reported zero databases and zero active index ISCP jobs. One cached entry remained under the existing five-minute TTL/default housekeeping cadence; immediate eviction is not claimed. Both test-owned service processes then shut down gracefully and all four SQL/debug ports closed.
Both CN logs recorded default restoration after the FULLTEXT timeout at 01:52:39, HNSW timeout at 01:57:27 and final normal run at 01:57:49 (2026-10-25, UTC−04:00).
The full logs, reports, control variants, configuration hashes, source fingerprints and independent design/review records are retained locally at
/home/xupeng/.codex/issue-to-pr/matrixone/pr31072-31075/. Expected-failing controls, canceled builds and ineffective probe setups are recorded separately and are not counted as passing UT/BVT runs.CI for the updated head is pending.