Repository navigation
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? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
|
mo-bot review · Commit: {"message": "Selected model is at capacity. Please try a different model.", "codexErrorInfo": "serverOverloaded", "additionalDetails": null, "misalignment": null} |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 9c990cc08b4d400545ffc3efde05497f7f077d56
Assessment: approve
Reviewed the complete six-file delta and affected callers. The shared constructor/upgrade guard preserves readable empty snapshots while retaining freezing, legacy persistence behavior and reference ownership. Async tests now synchronize on their actual completion conditions and preserve negative-path assertions. Production overhead is limited to constant metadata checks at lifecycle transitions, with no added scan or I/O work. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Reconciled 22 command/source/exit receipts with retained logs and test outcomes in /home/xupeng/.local/state/mo-bot/jobs/3fd2c91583c794f6861ef565/attempt-1/review-evidence.json. Frozen source remained unchanged; native provenance matched 198 inputs and 46 built artifacts.
-
Full tables package passed normal and race modes. Focused normal checks passed for replay, delete, flush errors, dropped objects, tombstone visibility/rollback, abort holes, ISCP and the complete two-CN CHECK namespace suite.
-
Adaptive race repetitions passed: node lifecycle 100, persisted publication 100, empty-object replay 43, TestDelete3 100 and ISCP 4. The complete CHECK namespace race run passed in 33.77 seconds.
-
Restoring only the base reader implementation through an overlay reproduced missing-file failures in both replay branches; the candidate passed both.
-
Matching-toolchain formatting, go vet, molint and configured incremental golangci-lint passed for all four changed packages.
-
CHECK namespace normal runtime measured 36.52 seconds versus 8.06 seconds with the base test fixture over candidate production code. The added cleanup synchronization reuses the existing two-CN fixture.
Limitations:
-
Hosted CI was pending in the frozen evidence. Local validation covered Linux/amd64 CPU execution and selected affected paths; no full-repository or cross-platform pass is claimed.
-
Linked issue bodies were absent from the supplied evidence; behavioral contracts were assessed from the frozen PR description, source and regression tests.
-
Initial native-provenance and ambient-formatting diagnostics were recovered before validation; neither was counted as a product-test failure.
Classic FULLTEXT and FULLTEXT2 currently reject scan-local `MATCH(...) OR scalar_predicate` and `NOT MATCH(...)` with error 20105. This change supports those predicates, including nested AND/OR/NOT, while retaining nonmatching rows that qualify through a scalar branch and returning overlapping matches once per base row. The composition path attaches one complete, unique raw-score stream per distinct bound MATCH leaf with preserving LEFT joins, normalizes absent scores to typed zero below user outer joins, and evaluates the original Boolean expression in a FILTER. Emitted zero and negative scores, scalar SQL NULLs, and exact term/mode/parameter identities remain intact. Served scores can be consumed by projection, aggregation, windows, and ordering. Explicit FORCE INDEX FOR JOIN hints reach the same path. Cross-binding, missing-index, mismatched-index-parts, and unserved-score consumers retain their explicit refusal behavior. This route requires a MATCH beneath OR/NOT in a scan-local WHERE predicate. Existing positive and projection-only MATCH membership behavior is unchanged; standalone projection does not globally gain zero-score rows. Fulltext candidate limits and ANN truncation are disabled for this composition path: explicit distance/score ordering and LIMIT/OFFSET operate on the complete Boolean-filtered set. FULLTEXT2 keeps its existing asynchronous visibility contract. Design: [exact approved design content](https://github.com/VioletQwQ-0/matrixone/blob/dde7e9ef357815198133ef8abe666cb5b021d94c/docs/design/20261014-fulltext-boolean-composition.md), originally reviewed at `dce89ab1ad4f61eb157c84c2cd55e89902fbaa87` (content SHA256 `df7d8bafc2772d79fe18934226c1c3608e51573348ba97494d6e9bc1e32a1925`). User-facing supported/refused semantics are documented in `docs/sql/fulltext-boolean-composition.md`. Validation completed on the reviewed candidate source: - Independent design and implementation reviews passed, including the FORCE JOIN correction. All 14 `^TestFullTextBoolean` tests passed; owning planner/provider packages with all vet analyzers and incremental affected-package lint passed. - Clean production base `5a0570ea70083c9365719009a5ed8d7618f9ed91`: 12/12 checks, comprising eight expected real 20105 receipts across both engines and four positive/projection-only controls. - Native Go 1.27.1 Darwin arm64 service: canonical normal comparison of `fulltext_boolean_composition`, `fulltext2_boolean_composition`, and `fulltext_wrapped_score`, twice on the same instance, each 235/235 with zero failed/ignored/abnormal cases. The reviewed SQL/result pairs were unchanged; database/snapshot teardown was verified between runs. - Supplemental execution: 50 semantic checks, 20 real EXPLAIN ANALYZE checks, and two JDBC server-prepared subprocess checks, all passing (72/72). Includes three-valued logic, nullable multi-column content, signed/zero scores, exact leaf projection binding, duplicate-leaf controls, FORCE JOIN hints, global pagination, and exact vector sorting with an IVF index present. Binary prepared statements were reused across terms/thresholds/NULL/absent patterns, including classic error 20301 followed by successful reuse. Historical/current snapshot results demonstrably differed under each provider's visibility contract. - Actual core Analyze counters show complete 3-hit streams, preserving joins with 8 base rows, Boolean filtering 8→5, and outer pagination 5→2. Repeated leaves use one stream; distinct leaves use two. A signed fixture emits all four scores, including one negative and three exact zeros. Owned processes/data/sockets/ports were cleaned. Original publication provenance: reviewed original head `8c39a92bc3da43b88be525ae3da50b9e7bc0a434`; Mac execution used temporary commit `027e413ee700edf3e4810606f06ae6a6cf2e5c2d`. That original publication only normalized the three local commits' author/committer identity. All three final heads have exactly the same complete Git tree `d721a6d69f1a24ded1087fa1a47ae8ea8e47a517`, independently audited; no source change or duplicate runtime rerun was introduced by history recovery or attribution. Limits: bounded single-CN CPU validation, not production-scale capacity/performance, HNSW runtime, multi-CN, GPU/Sirius, or full repository CI. The separate #30164 optimization is not included; combined changes have planner-layer evidence only. Latest-main preflight at `fab7b5c0430a475bf64ad1619ce4d5249013a138` merges cleanly, but its join/CTE changes have not been rerun as a combined runtime build. Local independent design, implementation, runtime acceptance, and cleanup gates are complete; this PR is ready for review. External repository approval and hosted CI remain merge gates, with no approval or CI-pass claim. Mergify subsequently merged that main into this branch at `1188011cbd8638bfc2219839b579d089d5199c60` (tree `b0241134ebc52db0d18f0653eb595f3c0967710a`); all 17 feature-change paths retain their reviewed bytes and modes. Original local execution remains proof at its recorded source tree; combined merged-main integration remains subject to hosted CI; see the scoped maintenance status below. ### Scoped CI maintenance Maintenance commit: `bab2e835a0919d08e9646df8fc9bbb109263f7ca`. This is an additional test-only correction, not part of the original identity-only publication described above. The source-head coverage failure in run [38599892439](https://github.com/matrixorigin/matrixone/actions/runs/38599892439/job/115976278666) came from the broadcast ownership fixture choosing scheduler completion when both completion and empty-consumer retirement were already observable. The waiter now rechecks retirement and preserves the received scheduler result for the unchanged terminal/error assertions. Genuine early completion, cancellation/deadline/error propagation, source interruption, output and allocation cleanup assertions remain intact. Validation on source `15f3a5db33e56899d9292436d1502811cd4ec2a9` plus this exact maintenance patch (Darwin arm64, Go 1.27.1, genuine matching native CPU SDK, GOMAXPROCS=2, build parallelism=1): - Coverage mode `set`, all vet analyzers, all five directly affected ownership roots and their subcases: PASS. - Each affected root under race detection, then adaptive repetitions computed as `clamp(floor(30 / measured_seconds), 1, 100)`: PASS. The five roots are Product/HashJoin/LoopJoin shared-producer ownership and HashJoin/LoopJoin remote-source ownership. - Owning-package normal tests were executed: the five affected roots passed, but the package is **not green** because `TestUnionNestedTopClearsAllocationOwners` failed with a spill-budget error. A root-only five-run control also failed on the unmodified source (1/5) and candidate (3/5); that test never calls the changed helper. These controls establish an independent test instability, not a blanket attribution of every failure variant or product acceptance. No UNION expectations or resource budget were changed. - Scoped molint, incremental configured golangci-lint and diff/format checks: PASS. For this maintenance delta, BVT is N/A: only a Go fixture's event-order oracle changes, with no production SQL entry point. The five real-operator ownership roots supply the corresponding regression evidence; the feature's canonical SQL/result pairs remain unchanged. Source15f hosted ordinary UT, SCA and both BVT jobs passed, while coverage/CI Required failed; none of those old runs is presented as new-head CI. QA required: yes. This remains a user-visible FULLTEXT feature. Original bounded single-CN acceptance stays bound to its recorded original tree; deployment/multi-CN/capacity gates and external review remain separate. No issue closure, review approval, full-package success or new-head hosted-CI success is claimed by this maintenance update. ### Rebase and current validation (2026-10-22) Current source: `5856b5a679197f302a655749cc54a1fbf5f46b90`, rebased onto main `0276f82fb72941efba8d2f8de738f1cb04174dae`. This section records current-source evidence; the earlier receipts remain historical evidence at their stated revisions. The vector-routing conflict preserves both the Boolean composition exact-sort refusal and main's plugin membership capability. The original merge-only IVF mixed-OR assertion is restored alongside main's volatile-filter control; the existing capability table now checks Boolean refusal for IVFFLAT, HNSW, CAGRA and IVFPQ. The old broadcast fixture workaround is superseded by main's durable completion handling and introduces no compile-package delta. Normal comparison exposed 13 stale metadata header lines. Two Boolean result files now follow main's deliberate computed-BOOL numeric TINYINT contract from #30191; the wrapped-score fixture now expects precision 20 for its declared VARCHAR(20). SQL, row values, NULLs, ordering and error assertions remain unchanged; results were not regenerated. Validation on Linux/amd64, Go 1.27.1, fresh matching CPU native artifacts and disk-backed temporary storage: - Complete planner, classic search reader, FULLTEXT2 search reader and FULLTEXT2 core packages pass normal tests and `go test -race -count=1` with bounded timeouts. These runs include existing roots, not just new cases. - Both originally failing CI roots, `TestIssue30090ReplaceViewLifecycleOrder` and `TestISCPExecutor3`, pass on the combined source with `matrixone_test`. Main contains their synchronization corrections from #30382 and #30632. - Incremental `go vet` and configured golangci-lint pass for all four affected packages; lint reports zero issues. Molint retains two existing `recover` diagnostics in untouched FULLTEXT2 storage functions; the same diagnostics were independently reproduced on clean target `0276f82fb7`. No new delta finding is hidden. - Normal comparison of the three canonical fulltext SQL/result pairs passes **235/235 twice on the same owned instance**, with zero failed, ignored or abnormal cases. Database and snapshot teardown checks pass after each iteration. - An independent JDBC control asserts stored BOOL versus computed BOOL types, precisions and true/false/NULL values, plus VARCHAR(20) metadata/values. Statement, client-prepared and actual server-prepared execution pass; the server-prepared class is explicitly checked to exclude fallback. Design, metadata addendum and final overall review use `gpt-6.1-sol / xhigh`. Design sessions: `01a160f2-20f7-7072-9274-93df5a897de9` and `01a160fa-b994-7211-976d-8af38b838e87`. Final review: session `01a160fd-f414-74c0-82be-acd213747d5a`, reviewed `5856b5a679`: **PASS, zero unresolved material blockers**. This remains bounded single-CN CPU validation. No new GPU, multi-CN or production-capacity claim is made. Fresh hosted CI results remain pending after publication. Approved by: @XuPeng-SH, @aptend, @fengttt
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #30622
Fixes #30625
Fixes #30621 (fixture completion and SI assertion ordering)
Related #30344 is already fixed on the base by #30382; this PR preserves and validates that correction.
What this PR does / why we need it:
A flush can drop an empty appendable object without writing its snapshot file. Unconditionally switching that object to a persisted node makes an older reader load zero extent from a nonexistent file. Keep unwritten appendable shells in memory, including WAL/checkpoint reconstruction, while retaining their frozen lifecycle. Any nonzero persistence payload, including legacy placeholder stats, keeps the existing persisted path and reference ownership.
The remaining CI corrections establish the completion conditions required by their assertions:
TestISCPExecutor3awaits each of its four index jobs, then applies the consumers' actual committed frontier before checking source/index equality.DELETE mo_increment_columns: it advanced the table-widemo_tableslock watermark after the new SI snapshot. Replace three blind attempts with an observable completion condition and one statement execution. Keep all existing authoring, enforcement, rollback and name-reuse assertions. Empty concurrency-only tables use explicit primary keys to avoid irrelevant allocator cleanup.Validation
Linux/amd64, Go 1.27.1, matching CPU CGo build,
matrixone_test, bounded timeouts and disk-backed temporary storage:7c146f4adbf068dd0c06b377157cfb7d7698b1eb: adding an old-reader scan to the existing empty-object fixture fails both branches with the same NoExt/zero-extent/missing-file signature.tablespackage passes normal and race tests. Empty-shell scans before and after WAL/checkpoint restart, originalTestDelete3, flush-transfer visibility/rollback, flush errors, dropped objects and physical abort-hole controls pass.TestDelete3100, ISCP 4, prepared-view 5; CHECK uses its separately measured bounded full-root run.go vet,molintand configured golangci-lint pass for all four changed package closures; refreshed for the final embedded-test delta.The production correction adds bounded stats checks only at object construction/upgrade, with no new I/O or scan work. The CHECK fixture now observes the existing 10-second lazy-cleanup cadence: its final normal root takes 33.60s versus 7.81s without the completion wait. It reuses the same two-CN fixture and data; the additional time proves cleanup rather than relying on that worker not running during assertions. Hosted CI remains pending.