Repository navigation
Conversation
4e38f64 to
1ab959f
Compare
|
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: c2365a4a84b1f1c5d5ca12ae82c14c3a8b6f51af
Assessment: approve
Reviewed the complete 28-file delta and affected callers. No actionable defects remain. The design keeps retirement in the existing allocator lifecycle and legacy decoding in the shared reader, preserves default behavior, and leaves SETVAL execution unchanged.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Verified the frozen head, unchanged source, complete patch correspondence, and generated protobuf descriptor compatibility.
-
Isolation preflight and native prerequisites built from the current revision passed.
-
Nine focused lockservice tests passed once and then 100 repetitions each under -race: 909 root-test passes. Exact commands, source fingerprints, exit receipts and retained logs were reconciled.
-
Reused frozen exact-head successful CI gates for build, UT, coverage, SCA and both BVT configurations.
-
Evidence mapping and detailed review retained in /home/xupeng/.local/state/mo-bot/jobs/bd8c8da8c1d074fa6e74dde9/attempt-1/validation-reconciled.json and review-notes.json.
Limitations:
-
CI raw logs and author-local artifacts were not supplied; their reported individual timings were not independently verified. No local TKE rollout or mixed-version cluster run was performed.
-
No throughput benchmark was run. Ordinary acquisition remains unchanged; Close adds two RPCs sharing a 10-second deadline, and opted-in binary decoding adds payload-proportional work. Unsupported or unavailable allocators retain timeout-based retirement.
Merge Queue Status
This pull request spent 3 hours 26 minutes 50 seconds in the queue, with no time running CI. ReasonThe merge conditions cannot be satisfied due to failing checks
HintYou may have to fix your CI before adding the pull request to the queue again. Waiting for any of
All conditions
Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
Related to #30635, #30650 and #29447.
What this PR does / why we need it:
After CN scale-down, the first DROP DATABASE could exhaust its 10s retry budget with Error 20702 because a departing CN remained the allocator's valid lock owner. Transaction cleanup could allocate that replacement owner; ordinary background SQL could also acquire ownership immediately before shutdown. Make remote Unlock recovery request an acknowledged, non-allocating GetBind lookup, and report completed LockService.Close through the existing exact-instance BeginDrain and epoch-confirmed terminal heartbeat before releasing its RPC client. The report follows local admission sealing, worker joins, physical-table destruction and transaction-holder cleanup. An invalid lookup retires only the exact stale cache generation and cannot publish a new physical table.
Lookup mode is an additive protobuf extension with an explicit response acknowledgement. Legacy responses still require a valid owner; absence without acknowledgement is never retirement proof. Close reporting checks the service incarnation, attempt and allocator epoch and shares one bounded RPC context. Unsupported peers, epoch replacement or transport failure retain timeout retirement and emit a diagnostic while preserving Close's existing local-error contract. The cleanup correction requires upgraded CN and allocator support; abrupt failure and unavailable control planes still use existing failure detection. No SQL retry budget or readiness condition is widened.
Old MatrixOne JSONLINE exports used bare Base64 strings for binary columns. Add the explicit read option
json_binary='legacy_base64'to restore those archives while preserving default string imports. Validate infile, S3, Stage and read-only external-table consumers, persist the mode through configuration and SHOW CREATE, and reject malformed payloads and writable-table usage. Both record shapes and BINARY/VARBINARY/BLOB use the shared reader; decoded\Nbytes remain non-NULL.Preserve SETVAL's existing called-state behavior and expose all four previous-state/third-argument combinations in the SQL regression. For an ascending sequence away from its boundary,
SETVAL(n,true)makes the next NEXTVAL returnnonly if the sequence was previously uncalled; an already-called sequence advances. The matching Chinese latest documentation is in matrixone-doc#733.Validation on Linux/amd64, Go 1.27.1, with locally built CGo dependencies:
Rebased onto upstream main
52af980b2089. Preserve the upstream JSONLINE text-fidelity regressions alongside the legacy binary recovery tests. On the rebased code, full external/plan/parser-tree packages, full LockService race, both scale-down SQL scenarios in atomic coverage and race, seven-package vet/lint, and both mo-tester cases twice on the same embedded SQL instance pass.The previous-head UT job failed in
TestIssue29399AccountRestoreRollsBackInvalidPrivilegesduring DROP ACCOUNT cleanup; its functional subtests passed. On this rebased head the unchanged test passes once under race and twice in one process with CI-equivalentGOMAXPROCS=2 -race -short, including the account/snapshot absence assertions. Existing test deadlines, cleanup checks and CI selection are retained. The complete CI is being rerun on this head; these focused results do not substitute for its terminal outcome. A new TKE deployment remains pending. No issue is closed automatically by this follow-up PR.