Skip to content

feat(sql): support administrator FLUSH PRIVILEGES as a no-op - #31834

Merged
XuPeng-SH merged 20 commits into
matrixorigin:mainfrom
VioletQwQ-0:fix/flush-privileges-30468
Nov 27, 2026
Merged

XuPeng-SH merged 20 commits into
matrixorigin:mainfrom
VioletQwQ-0:fix/flush-privileges-30468

Conversation

@VioletQwQ-0

@VioletQwQ-0 VioletQwQ-0 commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Refs #30468, FLUSH PRIVILEGES subitem only. This does not close the broader compatibility issue.

What this PR does / why we need it:

Accept FLUSH PRIVILEGES for the active moadmin/accountadmin role and return an OK response without modifying privileges or invalidating caches. Add parser/AST support, explicit frontend authorization and execution handling, and regression coverage. FLUSH remains a nonreserved identifier.

This is a limited script-compatibility feature, not full MySQL FLUSH semantics: it uses existing administrator roles rather than introducing a grantable RELOAD privilege, preserves the current transaction rather than implicitly committing, and follows the existing mo_rollback_txn_on_error policy on rejected statements. PREPARE and other FLUSH variants remain unsupported. FLUSH TABLES, RESOURCE GROUP, and EXPLAIN FORMAT=JSON are outside this patch.

Design record: docs/design/flush-privileges-noop.md records the bounded design review; it is separate from GitHub human approval. The older fengttt approval predates this head. XuPeng-SH and iamlinjunhong have since approved exact head f0e69c4f3ccb5ff2a2c07583a65e310bc7878497; LeftHandCold and aptend remain requested. Independent deployment QA is pending. This head also adds a binary COM_STMT_PREPARE request-path regression.

The earlier DELETE-source baseline repair is already present in integrated main. Focused tests retain coverage of the fail-closed missing/derived-source behavior.

Current head

The current head is a9922c1e1f947544cac7e6ad5063444abe1f71b5, synchronized with main at 9bf005bfcd06ef722351bccd9c9a59833ce2b5bd. FLUSH PRIVILEGES is now a direct production of the top-level stmt_list; generic stmt no longer accepts it, so common_table_expr cannot parse it as a CTE body. TestFlushPrivilegesSyntax rejects WITH c AS (FLUSH PRIVILEGES) SELECT 1. The prior regressions for unquoted flush identifiers remain covered and pass.

Validation

At a9922c1e1f947544cac7e6ad5063444abe1f71b5, the MySQL parser was regenerated from the merged grammar. The full MySQL parser package and focused frontend authorization, transaction, binary PREPARE, and unused window diagnostics tests passed with -race. Both packages passed go vet -race. Remote CI is pending. Deployment QA remains pending.

Historical candidate: 05ddb48; tree e05ea06f22f10b3fcebbb0c3349383bcd95ecee6.

  • Focused FLUSH and DELETE tests, full frontend/parser package tests, go vet, and service build passed.
  • Official mo-tester BVT passed twice, 80/80 each, with resource cleanup verified between runs.
  • Negative control changing a rollback count expectation failed as expected (79/80).
  • Cases cover administrator/ordinary roles, tenant boundaries, authorization cache on/off, GRANT/REVOKE visibility, existing prepared statement preservation, PREPARE rejection, BEGIN/autocommit=0 and error rollback policy.
  • Repository-configured molint and golangci-lint v2.14.0 passed; golangci-lint reported 0 issues.
  • The c0de-era tests and BVT results below are historical evidence, not validation of the rebased current head. No merge or deployment has been performed.

Historical integration at c0de195

  • Merged main d24f446e1e94a58c329d422519f7aad621cdcd05 and regenerated the MySQL parser from the combined grammar with no grammar conflicts.
  • Focused FLUSH authorization, transaction/PREPARE, parser and DELETE-source controls passed (11 tests/subtests); full pkg/frontend and pkg/sql/parsers/dialect/mysql packages passed.
  • Built the candidate service at c0de195f10d64cd036e99d9053ca1c1d676b9579; flush_privileges.sql passed normal mo-tester comparison twice, 80/80 each, with JDBC metadata ignored as in the existing harness. Test accounts, role and databases were checked absent between runs, and the owned service terminated. go vet, incremental lint and git diff --check passed.
  • QA required: yes — deployment should independently verify tenant-role authorization and transaction behavior in the target environment. No deployment or QA execution is claimed here.

Previous exact-head CI validation (54f0a88; superseded by ab779e7)

On head 54f0a880b1daed493406998ea72432465886c36c, workflow run 43200809588, attempt 2 completed with CI Required successful. Ubuntu/x86 UT, Linux/arm64 SCA, shared build, PROXY and PESSIMISTIC multi-CN BVT, coverage, and preflight passed. Conditional compatibility/upgrade and disabled jobs were skipped and are not counted as passes.

The PR remains open and Ready with review requests outstanding. Deployment QA for tenant-role authorization and transaction behavior remains required; no deployment or merge is claimed.

Previous exact-head CI and acceptance status (ab779e7; superseded by 4abb1ed)

The ALL run 43376977351 completed successfully on the prior head ab779e77d3cf357a8ec0b8eedead49b7529e5ea2. Conditional and disabled jobs were skipped and are not counted as passes. The human review requests and deployment QA remained pending after that head.

Previous exact-head CI and acceptance status (4abb1ed; superseded by 453c54e)

On run 44084089899 at head 4abb1ede2f077a14e04b1b7afe5bca5af6738efc, CI completed with failed Ubuntu/x86 UT, Linux/arm64 SCA and CI Required. The UT failure was pkg/fileservice/TestLocalFS/file_service/tree ending in context deadline exceeded; pkg/fileservice is unchanged by this PR. The SCA finding was sqlclosecheck on the newly added db.Prepare("flush privileges") in pkg/frontend/server_test.go; it was fixed in 453c54e by closing a non-nil statement on the unexpected success path. Focused local sqlclosecheck and git diff --check pass for the fix. This failed run is historical for the prior head and is superseded by the current-head run below.

Previous exact-head CI and acceptance status (453c54e; superseded by db91943)

The PR is OPEN and Ready at head 453c54e595d0723cfb32375658a3e64c9da1974b, based on 7fc45a2be2424d887199c5949362855cbacfe30f. On run 44249308908, CI preflight, coverage eligibility, Iceberg adapter tidy, PR-size-label and the workflow summary succeeded. Ubuntu/x86 UT, UT Coverage and Linux/arm64 SCA are in progress; shared build and Connector/J Pool Reset E2E succeeded. Conditional jobs are skipped, not passes; the Mergify queue check is neutral while waiting for CI Required, and there is no terminal CI Required result. XuPeng-SH's latest formal APPROVED review is on the earlier head ab779e77d3cf357a8ec0b8eedead49b7529e5ea2; LeftHandCold, iamlinjunhong and aptend remain requested. Independent deployment QA is pending. The prior head's SCA finding was reproduced locally with focused sqlclosecheck and fixed; the same focused check and git diff --check pass on this change. No tests were run for the statement-close-only edit. No merge is claimed.

Previous exact-head CI and acceptance status (db91943; superseded by 154447a)

The PR is OPEN and Ready at head db91943a751eca0b31f0ae43b0c6ca4fbf2fc90d. This head passes both focused binary FLUSH PREPARE regression tests, go vet ./pkg/frontend, incremental golangci-lint, formatting, and git diff --check.

The current check-run snapshot has 27 checks: 8 successful, 4 in progress, 13 skipped, and 2 neutral; none failed, and there is no terminal CI Required result. Skipped and neutral checks are not counted as passes. XuPeng-SH's CHANGES_REQUESTED review is on the prior head 453c54e595d0723cfb32375658a3e64c9da1974b; its P2 finding is addressed on this head, and review acceptance remains pending. LeftHandCold, XuPeng-SH, iamlinjunhong, and aptend remain requested. No unresolved inline review threads were found. Independent deployment QA remains pending. No merge or deployment is claimed.

Previous exact-head CI and acceptance status (154447a06678d5df5663a0a99dc4ef; superseded by f0e69c4)

The PR remains OPEN and Ready at head 154447a06678d5f001e385d5df5663a0a99dc4ef, based on 7fc45a2be2424d887199c5949362855cbacfe30f. The MySQL parser package and focused FLUSH tests pass locally; goyacc reports zero conflicts, and git diff --check passes.

The exact-head snapshot has 30 checks: 14 successful, 14 skipped, and 2 neutral; none failed. CI Required succeeded. Skipped and neutral checks are not passes.

XuPeng-SH and iamlinjunhong have both approved exact head f0e69c4f3ccb5ff2a2c07583a65e310bc7878497; iamlinjunhong's earlier P1 finding is resolved, and no unresolved inline review threads remain. LeftHandCold and aptend remain requested. Independent deployment QA is pending. No merge or deployment is claimed.

Previous exact-head validation (f0e69c4; checked 2026-11-18 17:06:51 UTC)

  • The regression was reproduced before the grammar change: TestFlushPrivilegesSyntax accepted WITH c AS (FLUSH PRIVILEGES) SELECT 1. The fix makes FLUSH PRIVILEGES top-level only; the CTE rejection, identifier cases and binary PREPARE rejection are covered.
  • Focused FLUSH/identifier tests and the full pkg/sql/parsers/dialect/mysql package pass. Parser regeneration matched checked-in output with zero conflicts and preserved all 797 existing token numbers. The binary PREPARE wire regression passed 100 repetitions.
  • Exact-head ALL CI run 44331955113 completed successfully; CI Required passed and both multi-CN BVT jobs passed. The PESSIMISTIC BVT job executed test/distributed/cases/zz_accesscontrol/flush_privileges.sql with 80/80 success and 0 failures. Skipped/neutral checks are not counted as passes.
  • No local-service BVT was run because this worktree has no mo-tester checkout or running MatrixOne service. The independent deployment QA for tenant-role authorization and transaction behavior remains pending.
  • XuPeng-SH and iamlinjunhong submitted APPROVED reviews on this exact head. LeftHandCold and aptend remain requested; the latest review-thread read returned no unresolved inline threads.
  • The PR remains OPEN and Ready. No deployment or merge is claimed.

@CLAassistant

CLAassistant commented Oct 30, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@matrix-meow matrix-meow added the size/XXL Denotes a PR that changes 2000+ lines label Oct 30, 2026
@mergify mergify Bot added the kind/test-ci label Oct 30, 2026
@XuPeng-SH
XuPeng-SH marked this pull request as ready for review November 2, 2026 11:07
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

Copy link
Copy Markdown
Collaborator Author

Addressed the fixture-validity finding in db91943a751eca0b31f0ae43b0c6ca4fbf2fc90d.

  • The binary server fixture now applies SetDefaultValues() and installs the existing empty rewrite-rule cache fixture.
  • The request-path test now asserts ErrParseError; the wire test asserts the SQL parser rejection before checking that the connection remains usable.
  • Both focused regression tests pass, as do go vet ./pkg/frontend, incremental golangci-lint, formatting, and git diff --check.

Exact-head CI has started for this commit and is still in progress. XuPeng-SH, please re-review the addressed P2 finding. Deployment QA remains separate and has not been performed.

@XuPeng-SH

XuPeng-SH commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · superseded

Commit: db91943a751eca0b31f0ae43b0c6ca4fbf2fc90d

Review discussion changed before publication; a fresh contextual review is queued.

@iamlinjunhong iamlinjunhong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed db91943a751eca0b31f0ae43b0c6ca4fbf2fc90d for the FLUSH PRIVILEGES compatibility item in #30468.

  • [P1] Preserve unquoted identifiers named flush (pkg/sql/parsers/dialect/mysql/keywords.go:479). The scanner now emits FLUSH for unquoted flush, while the role_name rule at pkg/sql/parsers/dialect/mysql/mysql_sql.y:10046 takes bare names through ID and enumerates keyword exceptions separately. The base parser accepts CREATE ROLE flush, SET ROLE flush, and DROP ROLE flush. All three return syntax errors on this head, including for scripts managing a role created before upgrade. The same token change breaks unqualified calls to a UDF named flush and unquoted FOR ICEBERG REF flush. Keep the keyword contextual to the statement or preserve those identifier paths. Add regression cases for the affected syntax.

The previous binary PREPARE fixture finding is addressed. The author's reply explains the fixture changes. The current tests require the parser-specific error, and the wire test checks the connection afterward.

I reproduced the parser regression locally with mysql.ParseOne using the current parser and the base parser files. Parser regeneration matched the checked-in output byte for byte, and git diff --check passed. I did not rerun frontend tests or service BVT locally.

The exact-head snapshot contains 30 checks. Of those, 14 succeeded, 14 were skipped, and 2 were neutral. There are no failures or pending checks. CI Required succeeded.

@XuPeng-SH

XuPeng-SH commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · done

Commit: db91943a751eca0b31f0ae43b0c6ca4fbf2fc90d

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: db91943a751eca0b31f0ae43b0c6ca4fbf2fc90d

Assessment: request_changes

The administrator-only no-op reuses the existing authorization and transaction paths. The revised binary PREPARE tests address the earlier fixture finding by requiring a parser error. The global keyword mapping still breaks existing SQL that uses flush as an unquoted role name, function name, or Iceberg ref.

Model: gpt-6.2-sol / xhigh

Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0

  • P2 pkg/sql/parsers/dialect/mysql/keywords.go:479: Run CREATE ROLE flush, SET ROLE flush, DROP ROLE flush, SELECT flush(1), or a query with FOR ICEBERG REF flush.
    Impact: Existing scripts can no longer manage or activate the unquoted role, call the function, or query the named Iceberg ref. The candidate still accepts CREATE FUNCTION flush(...), so users can create a function whose ordinary invocation fails. Quoted role and Iceberg ref names still parse.
    Evidence: The lexer now emits FLUSH where role_name, function_call_generic, and iceberg_ref_name expect ID. The lexer and generated-table comparison in identifier-parser.stdout confirmed all five regressions against the merge base. It also confirmed that the role statements and function call worked in v4.2.5. Recognize FLUSH in the command context while preserving existing identifier syntax, and add regression cases for these forms.

Validation:

  • Verified the frozen patch and clean source, all 797 existing token numbers, and all 80 SQL/result pairs. Reconciled the retained same-head parser regeneration byte for byte with the checked-in file.

  • Compared scanner output and generated parser tables for v4.2.5, the merge base, and the candidate. Controls covered ordinary identifiers, quoted role and ref names, and the new statement. See identifier-parser.stdout and receipt 1794998849192524107-2.json.

  • The exact-head CI snapshot reports successful unit tests, static analysis, coverage, shared build, PROXY and PESSIMISTIC multi-CN BVT, and CI Required.

Limitations:

  • The comparison exercised the scanner and parser tables. Frontend package tests, service BVT, and deployment QA were not rerun locally.

  • The fresh parser regeneration timed out during toolchain setup. The retained successful regeneration matched the current frozen source.

@XuPeng-SH

XuPeng-SH commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · done

Commit: 154447a06678d5f001e385d5df5663a0a99dc4ef

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: 154447a06678d5f001e385d5df5663a0a99dc4ef

Assessment: approve

FLUSH PRIVILEGES uses the existing active-admin authorization and frontend status response. It preserves open transactions and rejects PREPARE. The revised grammar restores all five previously broken uses of unquoted flush.

Model: gpt-6.2-sol / xhigh

Session: 01a1ee80-0d82-7030-a965-b51f496c3054 · slot 2 · generation 1

Validation:

  • The full MySQL parser package passed all 297 top-level tests, including the five identifier regressions. See parser-go.jsonl and checks/1795004357733797608-4.json.

  • All four focused frontend tests passed, covering role authorization, transaction admission, and PREPARE rejection at both the request and wire layers. See frontend-go.jsonl and checks/1795004517338855224-3.json.

  • Parser regeneration matched the checked-in output byte for byte, reported zero conflicts, and preserved 797 existing token numbers. The frozen patch, formatting, and all 80 SQL/result pairs passed the audit. See parser-audit.log and checks/1795004164801860734-3.json.

  • All 19 discussion entries were reconciled in discussion-assessment.json. The frozen CI snapshot reports successful shared build, UT, SCA, coverage, PROXY and pessimistic multi-CN BVT, and CI Required.

Limitations:

  • The frozen CI snapshot contains job-level results. Current-head logs for the individual SQL case and independent deployment QA were unavailable.

@iamlinjunhong iamlinjunhong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 154447a06678d5f001e385d5df5663a0a99dc4ef against the FLUSH PRIVILEGES scope of #30468.

  • [P1] Restrict FLUSH PRIVILEGES to the top-level statement list (pkg/sql/parsers/dialect/mysql/mysql_sql.y:1250). The new alternative is on stmt, which common_table_expr also uses at line 7567. WITH c AS (FLUSH PRIVILEGES) SELECT 1 is rejected by the base parser but now parses as a Select with a FlushPrivileges CTE body. The binder registers an unused CTE without validating its body, so this nested form is not rejected as the top-level-only design requires. Move the alternative to a rule used only by stmt_list and add a negative CTE regression case.

The previous identifier regression is fixed for all five reported forms, and the author replied directly. The earlier binary PREPARE fixture finding also remains addressed: the tests require a parser error, and the wire test checks the connection afterward, as explained in the author’s reply.

Local validation: compared mysql.ParseOne on the exact head and on the base keyword map and generated parser using a Go overlay. Both focused parser tests (TestFlushPrivilegesSyntax and TestFlushKeywordPreservesIdentifierUses), git diff --check, and the PR artifact check passed. The nested acceptance was reproduced at the parser level; no local frontend or service BVT rerun.

Exact-head CI was not all green: 14 of 30 checks succeeded, 14 were skipped, and 2 were neutral. None failed or remained pending. CI Required succeeded.

@XuPeng-SH

XuPeng-SH commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · done

Commit: 154447a06678d5f001e385d5df5663a0a99dc4ef

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: 154447a06678d5f001e385d5df5663a0a99dc4ef

Assessment: request_changes

The same-head follow-up confirmed a grammar defect that changes the prior approval. The earlier fixes for unquoted flush identifiers and the PREPARE tests still hold.

Model: gpt-6.2-sol / xhigh

Session: 01a1eecd-3287-70c0-bb93-ab923faf5f3f · slot 0 · generation 2

  • P2 pkg/sql/parsers/dialect/mysql/mysql_sql.y:1250: A WITH clause places FLUSH PRIVILEGES in an unused CTE body.
    Impact: The parser accepts syntax outside the documented top-level-only contract. The planner leaves the unused CTE body unbound, allowing the outer SELECT to succeed.
    Evidence: common_table_expr consumes stmt at line 7567. The generated parser audit confirmed that this path accepts the new FLUSH production. The planner registers CTEs at query_builder.go:6385 and binds their bodies at reference sites. Move the production to a rule used only by stmt_list and add a negative CTE case to TestFlushPrivilegesSyntax.

Validation:

  • Patch whitespace and the generated CTE grammar audit passed. See diff-check.log, cte-grammar-audit.log, and their receipts in validation-assessment.md.

  • Reconciled the prior exact-head results for 297 parser tests, four focused frontend tests, and byte-for-byte parser regeneration.

  • Reconciled all 23 discussion entries in discussion-assessment.json.

Limitations:

  • The follow-up verified the generated parser states and binder source. The peer review reports parser execution. Exact-case service logs and independent deployment QA remain unavailable.

Copy link
Copy Markdown
Collaborator Author

@XuPeng-SH The CTE grammar finding is fixed on f0e69c4f3ccb5ff2a2c07583a65e310bc7878497: FLUSH PRIVILEGES is accepted only by the top-level stmt_list, and the negative CTE case is in TestFlushPrivilegesSyntax. I reproduced the acceptance before the change; focused parser tests and the full MySQL parser package now pass, with zero goyacc conflicts and a clean diff check. Local service BVT was not run because this worktree has no mo-tester checkout or running service. Please re-review this head.

@XuPeng-SH

XuPeng-SH commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · done

Commit: f0e69c4f3ccb5ff2a2c07583a65e310bc7878497

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: f0e69c4f3ccb5ff2a2c07583a65e310bc7878497

Assessment: approve

FLUSH PRIVILEGES is accepted only at the top level and reuses the existing active-admin authorization, transaction policy, and frontend OK response. The earlier CTE, unquoted identifier, and binary PREPARE fixture findings are resolved.

Model: gpt-6.2-sol / xhigh

Session: 01a1eecd-3287-70c0-bb93-ab923faf5f3f · slot 0 · generation 2

Validation:

  • The MySQL parser package passed 298 top-level tests, including the CTE rejection, identifier regressions, and a mixed-statement probe. See parser-tests-native.jsonl and checks/1795019086458179041-3.json.

  • Four focused frontend tests passed under race detection. The binary PREPARE wire test also passed 100 repetitions. See frontend-focused-race-retry.jsonl and frontend-wire-race-repeat.jsonl with receipts 1795019679368286237-3 and 1795019694427609947-3.

  • Parser regeneration matched the checked-in output byte for byte with zero conflicts and preserved all 797 existing token numbers. The source audit reconciled 28 discussion entries and 80 BVT SQL/result pairs. See parser-generation.log and review-audit.log with receipts 1795018903547451874-4 and 1795019272684153435-5.

  • Frozen CI for this head records successful unit tests, static analysis, both complementary multi-CN BVT jobs, and CI Required.

Limitations:

  • Individual BVT case logs and independent deployment QA results were unavailable.

  • The initial local checks encountered missing native headers and a module download error. Both setup issues were resolved before the passing runs. The retained logs and receipts are reconciled in validation-reconciliation.json.

@iamlinjunhong iamlinjunhong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed f0e69c4f3ccb5ff2a2c07583a65e310bc7878497 for the FLUSH PRIVILEGES compatibility item. No findings remain. Issue #30468

  • The previous CTE acceptance issue is fixed. The grammar accepts FLUSH PRIVILEGES only in the top-level statement list, including after a statement separator. CTE bodies still use the generic stmt rule, and the parser test requires WITH c AS (FLUSH PRIVILEGES) SELECT 1 to fail. Author’s reply
  • The five previously reported unquoted flush uses remain covered. The binary PREPARE tests still require a parser error, and the wire test checks that the connection remains usable after rejection. Identifier follow-up · Binary PREPARE follow-up

I checked the grammar against the generated parser, confirmed all 797 existing token numbers are preserved, and traced authorization, transaction handling, and PREPARE rejection. git diff --check and the PR artifact check passed. For runtime validation I used the current-head CI and peer review results in place of repeating local Go and service BVT runs. Current-head validation

Of the 30 checks on this head, 14 succeeded, 14 were skipped, and 2 were neutral. None failed or were pending. Unit tests and both multi-CN BVT jobs succeeded. CI Required succeeded.

@XuPeng-SH

XuPeng-SH commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · done

Commit: f0e69c4f3ccb5ff2a2c07583a65e310bc7878497

New discussion was assessed; the previous review remains unchanged.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

1 similar comment
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH

XuPeng-SH commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · superseded

Commit: a9922c1e1f947544cac7e6ad5063444abe1f71b5

"interrupted"

@VioletQwQ-0

Copy link
Copy Markdown
Collaborator Author

@Mergifyio refresh

@mergify

mergify Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

refresh

✅ Pull request refreshed

@mergify

mergify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

🚫 Left the queue · pull request dequeued

3 h 6 min in the queue, with no time running CI.

So far

  • ✅ Entered the queue Fri 27 Nov, 10:08 · rule main · triggered by rule Automatic queue on approval for main
  • ⏹️ Testing stopped · in place
  • 🚫 Left the queue 13:14 · df1db5d

Reason

Pull request #31834 has been dequeued

Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.

The author needs to enable "Allow edits from maintainers" on this pull request.

To get back in the queue

  • Push a change if one is needed: the pull request is queued again once its queue conditions match.
  • If no change is needed, tick the box below to queue it again as it is.

Merge conditions not met when it left the queue

  • any of · required by GitHub branch protection:
    • check-neutral = CI Required
    • check-skipped = CI Required
    • check-success = CI Required

Tick the box to put this pull request back in the merge queue (same as @mergifyio queue).

  • Requeue this pull request
2 merge conditions met
  • #review-threads-unresolved = 0 · required by GitHub branch protection
  • github-review-approved · required by GitHub branch protection

Times in UTC · dashboard · how the merge queue works

@VioletQwQ-0

Copy link
Copy Markdown
Collaborator Author

合入后部署验收 · FLUSH PRIVILEGES

请在包含 ecd037cd826e0815117eedcf5f460fe7f7917caf 的 MatrixOne 构建上执行 FLUSH PRIVILEGES SQL 回归用例,并回填构建版本、部署拓扑和以下结果。

  • 确认当前启用的系统管理员和租户管理员角色执行顶层 FLUSH PRIVILEGES 均返回 OK。普通角色被拒绝,租户之间的权限互不影响。权限缓存开启和关闭时,GRANT 与 REVOKE 的可见性均符合预期。
  • 分别在显式事务和 autocommit=0 下写入数据,执行成功的刷新命令,再回滚并确认写入被撤销。普通角色被拒绝时,核对 mo_rollback_txn_on_error 两种设置下的事务结果。
  • 已存在的预处理语句在刷新后继续可用。通过 SQL PREPARE 和客户端协议预处理这条刷新命令时,应返回解析错误,连接应能继续执行后续查询。

合并前 PR 头 df1db5defb3d7c9372e7b08a60bdcdf373b90ace 的 CI 中,多计算节点和代理回归任务成功,覆盖率流程未完成,CI Required 失败。合并构建的独立部署验收待回填。

本次验收只覆盖 #30468 中的 FLUSH PRIVILEGES,其余子项继续在原 issue 跟踪。

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants