Repository navigation
Fix group hash mpool reset - #23
Closed
gouhongshen wants to merge 1 commit into
Closed
gouhongshen wants to merge 1 commit into
gouhongshen wants to merge 1 commit into
Conversation
fengttt
pushed a commit
that referenced
this pull request
Oct 1, 2026
## What type of PR is this? - [x] API-change - [ ] BUG - [ ] Improvement - [x] Documentation - [x] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Refs matrixorigin#28966. This PR delivers the native bridge milestone; it does not close the migration issue. ## What this PR does / why we need it: Add an opt-in CGo backend that embeds Sirius in `mo-service` under CN service ownership. Use capacity leases to reserve input memory before payload allocation and retain batch credit through consumption. Join producers and native control calls before query destruction, with retryable cleanup. Pin Sirius as a submodule, build MO and Sirius GPU components using one frozen Pixi environment, and verify and package the SDK's runtime dependencies. Preserve Flight as the default backend. ## Review notes Implements [embedded migration design v2](https://github.com/aunjgr/matrixone/blob/ebdbf044292b738e2df710964bc7bb1ab90ae27d/docs/design/sirius-embedded.md). The compiler-facing input contract is `Acquire` followed by a lease's `Publish` and `Release`. Producers register cleanup immediately after acquisition and reserve credit before additional outgoing allocation, expansion, coalescing, or copying. Publication success transfers native ownership; failure or panic retains producer cleanup responsibility. Publication and release are serialized, repeated publication is rejected, and failed native release transfers a surviving handle once to query cleanup. The CN adapter validates the vector count against its registered schema before allocating converted descriptors. Query cleanup claims the complete Close attempt before borrowing the native handle for cancellation. Competing closers wait with their own contexts; Run's producers and cancellation callback join through its idle signal before destruction. Every interrupted or failed attempt releases the cleanup claim and retains retryable ownership. Sirius is pinned at the public merged commit `e2e2f08f` from [Sirius #23](matrixorigin/sirius#23). MO and Sirius use the same frozen Sirius `mo` Pixi environment for CUDA/cuVS/cuDF/RMM and compilers. The NVIDIA driver remains host-provided. C ABI version 1 is unchanged. The [bridge instructions](https://github.com/aunjgr/matrixone/blob/ebdbf044292b738e2df710964bc7bb1ab90ae27d/pkg/sql/compile/siriusbridge/README.md) cover submodule initialization, build, CN configuration, input ownership, package verification, and troubleshooting. Validation for current head `12ac112357`, which includes authoritative main through `c628836143`: - The concurrent-Close regression failed before the fix and now covers prepared/completed queries, independent waiting-caller cancellation, and destruction only after cancel returns. - The full bridge suite passed normally and under race detection. Four relevant close/retry/panic tests each passed 100 race-enabled repetitions in one process per test. - The combined `MO_CL_CUDA=1 MO_SIRIUS=1` release build and SDK/package verification passed. - The full native bridge suite, including data/cancellation and same-process cuVS → Sirius → shutdown → cuVS, passed normally and under race detection with two Sirius GPU streams. - Focused CN/compiler Sirius tests passed after the main merge. Incremental repository-configured lint reported zero issues. Fresh MO CI is running for the review-fix head. The previous full [verification run](https://github.com/matrixorigin/matrixone/actions/runs/36664797992) and the [ready-for-review run](https://github.com/matrixorigin/matrixone/actions/runs/36670206071) passed on `ebdbf04429`. This milestone provides the service/CGo bridge and its reservation contract. Public SQL MO-reader/result wiring, numeric parity (matrixorigin#28968), all-22 TPC-H validation, default cutover, and Flight/sidecar retirement are subsequent milestones. Direct-TAE input remains deferred. This PR changes no Dockerfiles. --------- Co-authored-by: XuPeng-SH <[email protected]>
mergify Bot
added a commit
that referenced
this pull request
Nov 20, 2026
…rigin#32853) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Fixes matrixorigin#32842 Fixes matrixorigin#32836 ## What this PR does / why we need it: - Validate exported snapshots before import. Remove a definitively invalid candidate and try an older export while preserving the TN replay watermark check. Keep transient read and removal errors retryable without compacting the Raft log. - Upgrade to the merged Dragonboat fixes in [#21](matrixorigin/dragonboat#21) and [#22](matrixorigin/dragonboat#22). Export worker failures return an error instead of terminating LogService, and malformed exported metadata or image headers return an incomplete-snapshot result instead of panicking. - Retain an admitted export request across a caller timeout, then reconcile its final worker result before retrying. After a same-process replica restart, use Dragonboat's successful restart as confirmation that the previous worker stopped, clean its abandoned export, and release the old export fence. - Rename incomplete final directories to durable `.removing` tombstones before deletion. Sync the parent directory on both initial cleanup and retries, so a partial deletion or crash remains recoverable. - Apply the same tombstone cleanup to invalid-candidate eviction and post-import cleanup, and return snapshot inventory errors from voting and nonvoting replica startup. - Upgrade the pinned upstream Dragonboat module to the merged [Dragonboat #23](matrixorigin/dragonboat#23) commit. Export-abort temporary-directory cleanup now reports filesystem errors to the worker. - Retry cleanup of already imported snapshots on the next ordinary truncation tick if the first rename fails, freeing export quota without re-importing or deleting newer candidates. - Treat a confirmed missing canonical export directory as already evicted, so an older valid candidate remains reachable; retain the inventory item when rename fails but its source still exists. ## Validation - The published Dragonboat module passes `go mod verify` and matches the source used for earlier full-package validation. - Focused corruption, TN replay watermark, failed export commit, timeout, replica restart, transient read, partial removal, and parent-sync retry regressions pass. - The new restart and tombstone-sync regressions each pass 100 race-enabled repetitions. Full `pkg/logservice` tests pass (142.162s), full package race tests pass (152.021s), and CGo-configured `go vet ./pkg/logservice` passes after merging upstream `main`. - After the Dragonboat upgrade, `go mod verify` and full `pkg/logservice` tests passed (127.735s). Dragonboat #23 passed focused ordinary and race tests. - After the post-import cleanup retry fix and upstream `main` merge, full `pkg/logservice` tests pass (132.535s), the import/corrupt-export/rename-failure regressions pass 10 race-enabled repetitions, and CGo-configured `go vet ./pkg/logservice` passes. - After the missing-directory fallback fix, full `pkg/logservice` tests pass (128.629s), the new fallback and rename controls pass 10 race-enabled repetitions, and `go vet ./pkg/logservice` passes. Focused regressions also pass after merging the latest upstream `main`; CI is pending on this head. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes:
issue #
What this PR does / why we need it: