Repository navigation
fix(view): preserve restore semantics and extend S5 conformance - #30953
Conversation
Add deterministic opt-in DDL, snapshot, restore, warm-memo failure and cancellation coverage. Record the S5 evidence matrix and remaining activation/version gates without enabling production routing. Related to matrixorigin#29440.
Preserve restored security and creation environments, keep clone mappings explicit, and validate real prepared execution/retry through default-disabled integration wiring. Related to matrixorigin#29440. Full S5 acceptance remains incomplete; production activation stays disabled.
Use the persisted identifier policy when the background executor produces the actual AST, not only during preliminary classification. Cover mixed-case and lowercase account restore through real SQL, with security and creation-domain checks. Related to matrixorigin#29440.
XuPeng-SH
left a comment
There was a problem hiding this comment.
Incremental static review of head af46e83ced44eac7b33950a34fb9b53ca2535e87.
The latest commit closes the reported mixed-case restore gap at the actual execution parser: GetComputationWrapperInBack now asks RestoredViewLowerCaseTableNames for the exact replay SQL before constructing the AST. The helper is context-scoped, requires exact SQL equality, treats absent/null legacy policy as fallback, and rejects malformed or out-of-range saved policy; the new unit cases assert the executed AST name and that the session mode is unchanged. The expanded restore BVT checks both mixed-case and lowercase objects, persisted INVOKER/creation/dependency metadata, and reader denial. I found no new source-level blocker in this incremental parser fix.
This is a COMMENT, not approval of the full S5 work. The PR remains Draft and explicitly says full S5 acceptance is incomplete and S8 rollout is NO-GO; the supported L/A/B transition matrix, interruption/restart/drain, rollback denial and old-process fencing remain acceptance gaps. Issue #29440 remains open. This workspace has no MatrixOne checkout or Go toolchain, so I did not execute the tests; the focused UT/BVT results and binary repro in the PR description are author-reported. Exact-head combined status is empty; the only returned workflow run is unrelated Iceberg Connector E2E, which succeeded.
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. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 3f43b78b5e0ec16ae70acce734bd2f6e38fbc4ee
Assessment: approve
Reviewed the complete 28-file delta and affected callers. The scoped restore context preserves creation semantics before binding, while existing owners retain authorization, dependency generation and cleanup. Test-only routing shares the established planning implementation. No actionable defects remain within this partial S5 delivery.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Reused frozen current-head successful unit-test, static-analysis and BVT records.
-
Isolation preflight passed. Rebuilt native prerequisites through repository make cgo with matching provenance in an exact-source diagnostic copy.
-
Three integration suites passed: 136 named results in 29.087 seconds, covering wire execution, cursor stability, compile retry, restore/security, historical metadata and two-CN ownership.
-
Race checks passed: catalog/protocol and subscription suites individually; two-CN ownership repeated twice; cancellation repeated 100 times.
-
Verified source-copy identity, clean assigned checkout and diff-check. Reconciled commands, source fingerprints, exit receipts and retained logs in /home/xupeng/.local/state/mo-bot/jobs/671702a1013750f8b41e506d/attempt-1/receipt-index.json.
Limitations:
-
Approval covers this partial delivery. Full S5 version-transition, interruption/restart, rollback and old-process fencing validation remains outstanding; S8 rollout is not established.
-
Historical author logs were unavailable and were not treated as current-head execution proof. Performance was assessed through call-path inspection; no benchmark improvement is claimed.
Merge Queue Status
This pull request spent 1 hour 37 minutes 9 seconds in the queue, with no time running CI. ReasonThe merge conditions cannot be satisfied due to failing checks
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 #29440, under #29433.
What this PR does / why we need it:
Partial S5 delivery; keep this PR Draft and #29440 open. Full S5 acceptance is not complete, and S8 rollout remains NO-GO.
Changes
Validation
The earlier full closure validation below used upstream
main@5fb586e1429386260b900171f65ffa844f49c981. Its results are historical, not a blanket current-source claim after the subsequent parser repair. Tooling: Go 1.27.1, matching gofmt, golangci-lint 2.14.0, and the repository CGo wrapper with verified native prerequisites. Current review-fix validation is listed separately below.mo-testerregenerated the expandedrestore_account_privileges.resultfrom the current ordinary binary. Strictrestore_account_privilegesandview_metadata_on_demandruns pass. The result includes INVOKER denial before/cross-account/after same-account restore and bigint/11 creation-domain checks against an int/22 decoy.grant_view -npasses authorization/rows, not strict metadata. An earlier baseline overlay reproduced its 11 strict metadata-width differences, plus two INVOKER restore failures absent from the candidate; no strict-pass claim is made for this supplemental case.Source fingerprints, nonempty selections, terminal events, commands, coverage profiles, binary/result hashes, failures, and the full ownership/unhappy-path review are retained locally. The final plan-test-only cleanup change was revalidated; unchanged frontend/native binaries do not compile plan
_test.go. Owned BVT services and the temporary port-lease guard have been stopped. Local results are not a claim that remote CI is green.P2 review follow-up: actual restore execution parser
Merged upstream
main@be663676872edf6d42695bba41757af0a3251758. This closes an incomplete path in this PR's restore repair; it is not claimed to be a newly introduced regression.The preliminary parse already used the saved identifier policy, but
GetComputationWrapperInBackparsed again using the restore session's mode. A mode-1MixedViewtherefore became a different target name, bypassing scoped metadata preservation. The actual execution parse now reads the saved policy for the exact replay SQL, without session/global mutation or weaker identity matching.mixedviewand persistedDEFINER/app/appinstead ofINVOKER/creation_env/creation_env; the lowercase control remains correct.lower(relname)ensures the catalog oracle cannot silently omit a wrongly cased object.Remaining acceptance boundaries
Still missing: a frozen supported L/A/B artifact/config matrix; the complete approved executable B candidate; real version transitions, two-commit interruption/restart/drain, rollback denial, and old-process reentry fencing; and the remaining historical-authorization/restore/failure combinations. Failed artifact-inventory requests are not evidence of artifact absence.
Same-binary multi-CN tests, component admission tests, historical templates, and isolated protocol wiring are not substitutes for those gates. Production S3/S4 activation stays off. No S8 refresh retirement, S9 cleanup, partition/stored-procedure/UDF scope expansion, or warning text/count compatibility changes are included. Changes to approved security, persistence, activation, or rollback contracts still require separate approval.
Design, evidence map, uncovered boundaries, and ownership review: S5 conformance.