Repository navigation
Conversation
|
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: 642d4a43c7ac5fdb078d7e82a25049e98fe5193d
Assessment: request_changes
The two-CN Proxy test confirms that migration preserves the original session’s identity and grants after name reuse. Frontend SHOW GRANTS also passes. Two regressions remain: RENAME USER can create a user-role name collision, and implicit SHOW GRANTS fails through the internal SQL executor.
Model: gpt-6.2-sol / xhigh
Session: 01a1ee7f-fdcb-7b83-ad57-3b17a0e9d494 · slot 1 · generation 1
-
P2
pkg/frontend/rename_user.go:232: Rename a user to a name already held by a role in the same account.
Impact: The rename creates an ambiguous catalog name. GRANT ROLE and REVOKE ROLE resolve roles first, so a later statement intended for the renamed user can modify the role instead.
Evidence: The embedded SQL probe confirmed that CREATE USER rejected the occupied role name while RENAME USER succeeded. CREATE USER checks both namespaces at pkg/frontend/authenticate.go:12076, and GRANT ROLE resolves roles first at line 6494. Reuse the account-scoped role-name check for each rename destination and reject the entire statement on collision. -
P2
pkg/sql/plan/build_show.go:1200: Run implicit SHOW GRANTS through the CN’s internal SQL executor.
Impact: The statement now fails at binding withcurrent user identity is unavailable.
Evidence: Before the change, this path usedGetUserName(), which returnsrootin pkg/sql/compile/sql_executor_context.go:568. The internal compiler implements neither new identity method. The embedded probe confirmed that explicit SHOW GRANTS for root still succeeds and implicit SHOW GRANTS fails. Preserve the internal executor’s established identity while retaining stable-ID selection for authenticated frontend sessions. -
P3
pkg/tests/issues/issue_29148_test.go:274: Run the prepared-statement migration regression with a target authenticated as a different user.
Impact: The test now stops at the principal check and no longer verifies that final replay enforces the target session’s current privileges after identity verification succeeds.
Evidence: The previous assertion required a replay privilege error. The replacement asserts the earlier principal-mismatch error, and the remaining same-principal case only checks success. Keep the mismatch case and exercise replay denial with a matching principal whose target session lacks the required privilege.
Validation:
-
Isolation preflight and git diff --check passed. The MySQL parser regenerated byte-for-byte. See checks/1795123482550425708-3.json, checks/1795123482582226163-2.json, and checks/1795123507112875650-2.json.
-
Focused frontend, planner, protobuf, two-CN Proxy, embedded rename, and prepared-migration checks passed, including both fixtures changed at this head. See focused-go.stdout and checks/1795123716777503979-2.json.
-
Both embedded regression probes reproduced their expected failures. See review-probe.stdout and checks/1795123743185799993-2.json. The frozen CI rollup reports CI Required success at the reviewed head.
Limitations:
- Local execution covered focused tests and embedded clusters. Historical released-version upgrades, deployment QA, and the full distributed SQL suite were outside the local run.
gouhongshen
left a comment
There was a problem hiding this comment.
Codex automated review
Revalidated the complete PR at 642d4a4, including the three authored follow-up commits and relevant merge-conflict resolutions. I found no independent findings. My earlier migration-identity blocker is fixed by source principal export, preflight and final verification, fail-closed attestation, and two-CN coverage. Stable-ID implicit SHOW GRANTS planning and resolved-session identity address my earlier grant and qualified-login concerns. Requested BVT coverage is present. The fixture-header blocker is withdrawn because unstable metadata comparison is explicitly skipped, and the related fixture updates address stale principal data. XuPeng-SH’s current-head review separately tracks unresolved same-account role-name collision and internal-executor implicit SHOW GRANTS findings; the reduced replay-privilege-denial coverage remains a non-blocking concern there. Verification: the focused protobuf migration-principal wire-presence test passed, and git diff --check passed. Frontend, parser, and proxy suites could not run because this checkout lacks the required prebuilt MatrixOne CGo headers and libraries; this is an environment limitation, and no prerequisites were installed or synthesized.
|
mo-bot review · Commit: discussion changed before publication |
iamlinjunhong
left a comment
There was a problem hiding this comment.
审查结论为 REQUEST_CHANGES。在 main 基准 28ffd6ae678744b6ff68bc239daefe9ad9ac1325 上审查了 642d4a43c7ac5fdb078d7e82a25049e98fe5193d。本轮确认 1 个阻塞项和 2 个非阻塞项。阻塞项直接影响原 issue 中改名后向新用户名授权的用例。原 issue
- [P1] 拒绝改名到已有角色的名称(
pkg/frontend/rename_user.go:232)。在同一账户中已有普通用户alice和普通角色billing、reader时,RENAME USER alice TO billing只检查mo_user,会提交用户与角色同名的目录状态。接着执行GRANT reader TO billing会成功写入mo_role_grant,新用户名对应的用户在mo_user_grant中仍没有reader。pkg/frontend/authenticate.go:6494先解析角色,pkg/frontend/authenticate.go:6663写入角色边。基准上的CREATE USER和CREATE ROLE均检查两个命名空间。请在改名事务内检查每一对的目标角色名,冲突时回滚整条语句。 - [P2] 保留 CN 内部执行器的隐式
SHOW GRANTS(pkg/sql/plan/build_show.go:1202)。通过 CN 的executor.SQLExecutor.Exec在sys执行SHOW GRANTS或SHOW GRANTS FOR CURRENT_USER(),基准使用内部编译器的GetUserName()解析为root。该编译器仍由pkg/sql/compile/sql_executor.go:656构建,并在pkg/sql/compile/sql_executor_context.go:568提供root,但没有新要求的GetCurrentUserID方法,因此现在绑定时报current user identity is unavailable。请保留内部执行器的既有身份语义,并让已认证前端会话继续按稳定用户 ID 查询。 - [P3] 补回身份校验通过后的 PREPARE 重放拒绝用例(
pkg/tests/issues/issue_29148_test.go:274)。基准用例要求目标会话因缺少 SELECT 权限而在重放时被拒绝。现在不同用户 ID 的目标在重放前被拒绝,同 ID 的目标只验证成功。可保留异 ID 用例,再用同一用户 ID、当前角色缺少目标表 SELECT 权限的会话验证最终导入仍执行目标权限检查。同一 head 的相关评审
上轮 Proxy 身份问题已修复,作者在线程内明确回复。源端导出账户与用户 ID,目标在重放前和最终导入时核对,旧名复用时拒绝候选连接并保留源会话。旧有隐式 SHOW GRANTS 前端问题也已修复,作者在线程内明确回复,旧会话按 ID 取回原用户授权。维护中的 BVT 已加入,账号限定登录的列名来源和初始 fixture 表头也已修正。所提供的讨论快照中没有作者对上述三个仍存问题的明确回复。Proxy 回复 · SHOW GRANTS 回复 · BVT 与协议回复
所提供的该 head 快照有 30 个已结束的检查,14 个成功、14 个跳过、2 个中性,失败和待完成均为 0。CI Required、Ubuntu UT、覆盖率 UT、SCA、共享构建以及 Proxy 和 Pessimistic BVT 成功。跳过的升级检查未提供历史版本升级覆盖。CI
本轮比对了 48 个文件的派发差异与本地提交,git diff --check 和 Loom 产物检查通过,解析器重新生成后与提交逐字节一致,Protobuf 描述符内既有字段编号保持不变。相关调用链和现有回归用例足以核实上述发现,本轮跳过本地 SQL、Proxy 和整包测试。文档核对使用了仓库中的设计与操作参考以及 MySQL 8.0 手册。MySQL 8.0 RENAME USER
|
mo-bot review · Commit: New discussion was assessed; the previous review remains unchanged. |
|
mo-bot review · Commit: New discussion was assessed; the previous review remains unchanged. |
|
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: 05c12e857896d21cee276a3b5883c0cbae1cd67f
Assessment: request_changes
The latest patch rejects existing role names and rolls back earlier rename pairs, restores implicit SHOW GRANTS for the internal executor, and restores prepared-statement replay authorization coverage. The stable-ID design reuses the existing catalog and migration lifecycle. One concurrency defect remains: a user rename and a role creation can both commit the same destination name.
Model: gpt-6.2-sol / xhigh
Session: 01a1f0a0-5126-78f3-9ab8-ef4e87f2f119 · slot 0 · generation 3
- P2
pkg/frontend/rename_user.go:243: A same-account CREATE ROLE claims the destination after RENAME USER checks that the role name is absent and before the rename writes its new name.
Impact: Both statements can succeed, leaving a user and a role with the same name. GRANT ROLE resolves role names first, so a later grant intended for the renamed user can modify the role instead.
Evidence: The rename checks mo_role and updates mo_user, while CREATE ROLE checks mo_user and inserts into mo_role at pkg/frontend/authenticate.go:12262 and :12301. The two tables enforce uniqueness separately. An embedded-CN probe paused the rename before its write, committed CREATE ROLE on a second SQL connection, and resumed the rename. Both calls succeeded and both bindings were visible. See namespace.stdout and checks/1795130245658738692-5.json. Use shared transactional exclusion for claims on the same account and name across RENAME USER, CREATE ROLE, and ALTER ROLE, and verify that a losing rename rolls back every pair.
Validation:
-
Isolation preflight, frozen patch verification, git diff --check, and native input provenance passed. Receipts 1795129941799557922-5.json and 1795129953887550502-5.json.
-
The parser regenerated byte-for-byte, and TestMigrationPrincipalWirePresence passed. Receipt 1795130098965794707-5.json.
-
Focused frontend, planner, and embedded tests passed, including committed-role collision rollback, both SHOW GRANTS paths, and same-principal replay denial followed by successful replay on a fresh target. Receipt 1795130181903359972-5.json.
-
The supplied CI snapshot for this head reports success for CI Required, unit tests, and Proxy and pessimistic multi-CN BVT.
Limitations:
-
The concurrency probe used an out-of-tree scheduling hook on one embedded CN. The source checkout stayed read-only.
-
Local validation was focused. Released-version upgrade jobs were skipped in the supplied CI snapshot.
|
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: 9ec189295bb7ab9a6fe48e42f8d71e34a93ebc9c
Assessment: request_changes
The shared account-row lock closes the earlier user and role name collision. Single-CN and two-CN tests confirmed that a waiting role writer sees the committed rename and rejects the collision. Preserve the existing transaction-creation timeout, update the design’s locking contract, and fix the regression test’s timeout cleanup.
Model: gpt-6.2-sol / xhigh
Session: 01a1f0a0-5126-78f3-9ab8-ef4e87f2f119 · slot 0 · generation 3
-
P2
pkg/frontend/authenticate.go:11999: CREATE USER, CREATE ROLE, or ALTER ROLE waits for background transaction admission or logtail catch-up longer than the configured createTxnOpTimeout.
Impact: These existing statements can now keep callers waiting until the request deadline, which defaults to 24 hours, instead of returning at the configured transaction-creation limit, which defaults to two minutes.
Evidence: Lines 4941, 11999, and 12235 enable cancelTxnCreateWithRequest. The branch at pkg/frontend/txn.go:968 replaces the configured creation timeout with the request context. Both existing timeout-ownership tests passed. The namespace lock is acquired after BEGIN, so preserve the configured creation bound while retaining request cancellation. -
P3
docs/design/20261026-rename-user.md:197: A principal-name change runs alongside another namespace writer or a SQL-task operation that takes the same account-row lock.
Impact: The design still attributes missing-name serialization to the unique username index. It omits account-wide contention and gives maintainers an incomplete lock order for operations that share the account row.
Evidence: The pinned feature-design-review.md:86 requires updating the design record for material implementation deviations. The helper at pkg/frontend/rename_user.go:149 adds an account-row lock before principal rows. SQL-task creation and force-trigger handling already lock that row. Update the writer matrix with the participating statements, lock order, and commit or rollback boundary. -
P3
pkg/embed/rename_user_test.go:127: The waiter assertion times out while an Eventually predicate is still scanning the lock table.
Impact: Test cleanup can release the packer while the polling goroutine reads it, masking the lock assertion with a race during failure reporting.
Evidence: Testify Eventually can return at its deadline without joining the running predicate. The deferred Close at line 120 releases and resets the buffer read by packer.Bytes at line 127. Encode and copy the expected key before starting the poll, then close the packer.
Validation:
-
Isolation preflight, frozen diff verification, git diff --check, and native-input provenance passed. Receipts 1795135184774444805-5.json and 1795135184874338958-5.json.
-
Focused frontend, parser, and embedded tests passed. The maintained namespace test also passed under the race detector. Receipts 1795135411340962957-5.json and 1795135679990349862-5.json.
-
A test-only two-CN probe passed for a non-system tenant. ALTER ROLE waited for RENAME USER and rejected the destination after the rename committed. Receipt 1795135375935537267-5.json.
-
Both frontend transaction-creation timeout tests passed. Receipt 1795135533637876296-5.json.
-
The frozen CI snapshot reports success for CI Required, unit tests, and Proxy and pessimistic multi-CN BVT.
Limitations:
-
The race run exercised the successful waiter path. The timeout cleanup finding follows from source inspection.
-
Released-version upgrade jobs were skipped in the supplied CI snapshot.
|
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: b654fd87ba5c47e9b8e87133979f7d0efbdcd388
Assessment: approve
The latest patch resolves all three prior findings. CREATE USER, CREATE ROLE, and ALTER ROLE respect the configured transaction-creation timeout and remain request-cancellable. The design records the account-first lock order, and the waiter test owns its polling key. RENAME USER preserves stable identities through the existing catalog transaction, and Proxy verifies the authenticated principal before transferring session state.
Model: gpt-6.2-sol / xhigh
Session: 01a1f0a0-5126-78f3-9ab8-ef4e87f2f119 · slot 0 · generation 3
Validation:
-
Verified the frozen patch, all 49 changed files, clean tracked source, native input provenance, and isolation preflight. Reconciled all 42 discussion entries.
-
Thirty focused tests passed on the assigned head. They cover transaction deadlines, atomic rename and role-name contention, implicit SHOW GRANTS, parser and protobuf contracts, two-CN Proxy identity, and prepared replay authorization. Commands, receipts, and logs are indexed in validation-reconciliation.json.
-
Reused matching parser-generation evidence and the prior non-system tenant two-CN lock-order probe. Frozen current-head CI reports successful unit tests and Proxy and Pessimistic multi-CN BVT jobs.
Limitations:
- Local execution used focused selections. Historical-release shutdown upgrades were outside that scope, and the frozen upgrade CI jobs were skipped.
|
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: 85df7eaaf60ca2a3c6499734080ef666c65129a7
Assessment: request_changes
The stable-ID implementation and migration attestation address the earlier identity and namespace concerns. Reusing the existing transaction locks and adding one migration verification RPC are justified by the rename behavior. RENAME USER itself still bypasses the configured transaction-creation timeout.
Model: gpt-6.1-terra / max
Session: 01a21136-dc54-7ba1-aace-4039c02570be · slot 2 · generation 3
- P2
pkg/frontend/rename_user.go:197: A RENAME USER request has a longer deadline than createTxnOpTimeout and transaction admission or logtail catch-up blocks.
Impact: The statement can wait until the request deadline or cancellation instead of returning at the configured transaction-creation limit. With defaults, that can be 24 hours rather than two minutes.
Evidence: The executor enables cancelTxnCreateWithRequest and passes the unbounded request context directly to BEGIN. pkg/frontend/txn.go:968 therefore uses the request deadline for TxnClient.New instead of CreateTxnOpTimeout. The existing beginPrincipalNamespaceTxn helper at rename_user.go:149 applies both bounds for CREATE USER, CREATE ROLE, and ALTER ROLE, but RENAME USER does not use it. Reuse that helper and extend the existing transaction-timeout test to cover rename.
Validation:
-
Isolation preflight passed. The frozen checkout matched the supplied patch, git diff --check passed, all 44 discussion keys were accounted for, and 195 native inputs matched the checkout.
-
The parser regenerated from the assigned grammar with no conflicts; its generated body matched the checked-in parser.
-
The focused Go run reported passing frontend, parser, planner, protobuf, Proxy, and issue packages, including the two-CN Proxy migration and prepared-statement migration tests. The combined command exited 1 because the embedded package exceeded its 240-second limit after two embedded tests had passed; receipt 1795615237358950788-2.json and focused.stdout.log retain the results.
-
The supplied exact-head CI snapshot reports successful Ubuntu unit, Proxy BVT, pessimistic multi-CN BVT, and CI Required jobs.
Limitations:
-
A retry of the two unfinished embedded cases and a review-only deadline probe each reached their 600-second outer timeout without test output; neither is counted as a pass. The deadline finding follows the source control flow.
-
No new local race, restart/restore, or historical-release upgrade run was completed. The supplied CI snapshot shows the upgrade jobs as skipped.
|
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: 66a190df1b867ea85b8dfd698310675ecac1eba5
Assessment: request_changes
The earlier Proxy identity, SHOW GRANTS, and principal namespace concerns are addressed in the current source. Reusing catalog locks and adding a migration verification RPC are justified by the identity-preservation contract. The previously reported transaction-creation timeout issue remains open for RENAME USER.
Model: gpt-6.1-terra / max
Session: 01a21244-6c6c-7240-bf19-37c0cdedc87d · slot 1 · generation 15
- P2
pkg/frontend/rename_user.go:197: A RENAME USER request has a longer deadline than createTxnOpTimeout and transaction admission or logtail catch-up is delayed.
Impact: The statement can wait until the request is cancelled or its deadline expires instead of respecting the configured transaction-creation limit. With defaults, that can be 24 hours rather than two minutes.
Evidence: The handler enables cancelTxnCreateWithRequest and passes the request context directly to BEGIN. Consequently, txn.go:968 forwards that deadline to TxnClient.New, whose admission and snapshot waits use it. A handler probe observed a one-hour BEGIN deadline with a three-second configured creation timeout; sibling CREATE USER, CREATE ROLE, and ALTER ROLE controls used the configured bound. Reuse beginPrincipalNamespaceTxn for rename and extend the existing timeout test to cover it.
Validation:
-
Isolation preflight and git diff --check passed on the assigned head.
-
Current-head focused tests passed for parser grammar, migration principal wire presence, rename rollback handling, and sibling principal DDL timeout handling. The review-only timeout probe and sibling control also passed, confirming the deadlines they observed; receipts 1795640397900210507-3.json and 1795640460519873930-3.json match the retained logs and assigned head.
-
The regenerated parser body matched the checked-in parser with zero reported conflicts; receipts 1795640322854226922-3.json and 1795640358978122133-3.json.
-
The supplied current-head CI snapshot reports successful Ubuntu unit, Proxy BVT, pessimistic multi-CN BVT, and CI Required jobs. Upgrade jobs were skipped.
-
An earlier same-PR focused run passed the Proxy migration and prepared replay packages, but its combined command failed when the embedded package timed out. That evidence is earlier-head evidence, not a current-head local run.
Limitations:
-
The timeout probe captures the context passed to BEGIN; it does not simulate a prolonged real admission wait. The wait path and its deadline ownership are established by source tracing.
-
No new local race, restart/restore, or historical-release upgrade run was completed. Initial local test setup failures were recovered using the required Go toolchain and native libraries whose inputs matched the current checkout.
|
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: 464d8a1ad91e732a5fe1eda2cda26066802f7583
Assessment: approve
The prior transaction-creation timeout finding is resolved. The stable-ID update, shared namespace locks, and Proxy principal preflight address the identified identity and concurrency risks without adding a separate state owner. Earlier concerns about name reuse, SHOW GRANTS, and namespace collisions are addressed. The disputed BVT metadata concern was withdrawn; public header and grant-content tests remain.
Model: gpt-6.1-terra / max
Session: 01a21492-3a62-72c3-9f89-e80a3d268af4 · slot 0 · generation 14
Validation:
-
Private /tmp and loopback preflight passed: checks/1795645803219858194-3.json and preflight.log.
-
Focused frontend tests passed for transaction creation, rename ordering and rollback, clone admission, and migration principal handling: checks/1795646286918076540-3.json and frontend-tests-auto.log.
-
Rename grammar test passed: checks/1795646149594056755-3.json and parser-tests-auto.log.
-
Proxy principal and protobuf wire-presence tests passed: checks/1795646344228884127-3.json with proxy-tests.log, and checks/1795646335359671955-3.json with protobuf-tests.log.
-
The frozen-head CI snapshot reports successful Ubuntu unit tests, Proxy BVT, pessimistic multi-CN BVT, and CI Required.
Limitations:
-
The initial local Go test attempts stopped before compilation because the default Go 1.26.6 toolchain was too old; the reported passing checks used Go 1.27.1 in the assigned cache.
-
CI details are available as status summaries in evidence.json, not per-test logs. Released-version upgrade jobs were skipped, and no separate released-version upgrade was run locally.
What type of PR is this?
Which issue(s) this PR fixes:
Related to issue #30467. Parent tracker #30464 and other account-management features remain outside this change; no issue is closed by this PR.
What this PR does / why we need it:
RENAME USER old TO newcurrently fails to parse, so account-renaming scripts cannot preserve existing credentials and grants. Add ordered, atomic rename pairs that retain the stable user ID, credentials, grants, default role and owned objects. Renaming the first source is rolled back if a later pair fails.Use stable IDs for affected authentication/session consumers and revalidate user bindings under the shared user-row exclusion. Reject protected/admin/special identities and textual function/procedure DEFINER references. Routine create/replace persists the post-lock canonical creator name. Routine-bearing CLONE requires an actual pessimistic-RC transaction and fails before target creation otherwise; no-routine CLONE keeps its prior behavior.
MatrixOne still has one username identity independent of host. Omitted/
%hosts preserve the stored host; explicit hosts must match. New destination names reject the specifically demonstrated login/SQL ambiguities (ASCII space/tab, backtick, quotes, backslash, question mark, NUL and exact uppercase%3A) after existing normalization. Unicode and other accepted controls remain supported; addressable legacy source names can migrate out. This is bounded compatibility, not the full MySQL host/name grammar.Operational contract: drain traffic and SQL/task writers, fully replace participating CNs and complete identical authoritative special-task bootstrap on every CN before admitting rename traffic. Restore must exclude affected-account writers. Mixed-version serving, rolling upgrade and online downgrade are unsupported.
Design: identity-preserving rename contract · operational reference.
PROXY BVT unordered SHOW GRANTS comparison correction
The PROXY job in CI run 40861917012 failed 9 of 66 assertions on
rename_user.sql. All nine actual grant multisets (including both repeated connect grants), principal names and metadata matched; only row order differed. The fixture's explicit@sortkey:0selected a comparator that preserves differing keys rather than the tester's normal full-row unordered comparison.Published head
f8d6eedd97a5600b4d6e3dee4ff1059f83bbbcd2removes the 11 inappropriate sortkey directives and adds an explanatory comment. Executable SQL, session/capture assertions and the canonical.resultfile are unchanged. No product code, ignored assertions, regex suppression or golden regeneration is involved.Fresh tests use the same official mo-tester revision
309a0ca, on one local single-CN TCP-only instance withnometaand auto-reconnect disabled:This is a comparison-fixture fix, not a Proxy migration fix. Existing Proxy migration P1/v0.7 and the fresh-session first-request
current_user_id()diagnostic remain open. Local comparison checks do not establish full Proxy/topology coverage; Normal fast-forward publication was verified on the fork branch and this PR. New-head CI is pending verification; no green-CI claim is made.Previous 4e41034 dot follow-up: SHOW GRANTS identity and main integration
Published head
4e410344e7617f2a49fc8a08d652455d471d9553has tree166177c66dd3b5f0bab9449ba75448f64b80ec2e, identical to testedec4819f58441abc619b3bc43bcfe0c58b100af44. Only the three unpublished commits' author/committer identities were corrected to the already associated contributor identity; every intermediate tree, message, timestamp and equivalent merge-parent relationship was verified. Published history is unchanged.Normally merge main
b01e952ad1021ef8f188641f3a11a1360c001218. Resolve ALTER USER / GRANT ROLE executor-option conflicts by retaining both stable-user pessimistic-RC locking and main's internal catalog-execution marker. Regenerate the parser from the merged grammar with zero conflicts. RENAME's own executor also uses the marker, preserving main's DCL exemption from the client READ ONLY gate without exempting ordinary persistent INSERT.Remove the frontend's conversion of implicit SHOW GRANTS to the session's stale username. Omitted/CURRENT_USER forms retain stable-ID lookup; explicit user/host and role forms remain explicit. The new real frontend regression retains the same authenticated connection across rename and old-name reuse, compares grants to an independent catalog-ID oracle, asserts old-name fresh-login rejection as MySQL 1045 / SQLSTATE 28000, and tests ordinary INSERT 1792 alongside successful RENAME in a READ ONLY session. Restoring only the removed three lines makes this real regression fail (expected renamed user's grants, actual empty result).
Fresh Linux/amd64, Go 1.27.1 evidence on the identical candidate tree:
TestRuleCacheDoubleCheckLockingskip.TestRenameUserShowGrants: PASS 4.776s, task-owned single-CN TCP-only fixture.zz_accesscontrol/rename_user.sql/.result: expected booleans/error classes manually reviewed, then official mo-tester normal comparison twice on the same task-owned instance, 66/66 each, zero failed/ignored/abnormal. Runs usenometaand per-statementsortkey; they do not claim column-metadata validation. Auto-reconnect is disabled; connection-ID checks prove existing-session retention.This follow-up is not complete-PR merge approval. Proxy migration P1 and the proposed v0.7 protocol remain unresolved; no protocol fix is included. A separate diagnostic observed
current_user_id()returning 0 on the first request and the catalog ID on the next request, before any RENAME; this patch does not claim to fix that initial-context behavior. New SQL evidence is single-CN/TCP-only: the local Unix-socket capability probe was denied, and Unix, proxy migration, cross-CN/restart/upgrade were not rerun for this follow-up. Earlier evidence below retains its original exact-source scope, rather than being relabeled as fresh coverage. Normal fast-forward publication has been verified on both the fork branch and this PR. That head's CI 40861917012 subsequently reported the nine PROXY ordering failures addressed above; no green-CI or all-review-resolved claim is made.Previous 823dc24 main synchronization and validation
Current head
823dc248403520744a6ea9d777cc065fe43910ff, tree620ca38269fc65111981af254d13ad486790ca31, normally merges main3b7752551b8a1cc60daddecde9a5438d5357cdf4intoa3ffbf49. Only generatedmysql_sql.goconflicted; grammar and frontend status handling merged automatically. Official regeneration twice produced identical SHA25625b9822d1c97f266e4fbe6910333ce338312bbb60db41801805bf3f2246e83f4, with zero grammar conflicts. The result equals the automatic merge tree with only the generated blob replaced. RENAME semantics remain unchanged alongside upstream SOUNDS LIKE/JSON_TABLE and ODKU behavior.Fresh exact-candidate Go 1.27.1/Darwin arm64 validation: parser owning group 368 passing roots/no test skips; frontend normal 2705 passing roots/one existing RuleCache skip; configured incremental lint across the five feature packages passed with zero issues. Tests used count=1, vet=all and p2. Native/dependency inputs are unchanged and retain verified provenance. A first lint attempt stopped at the owned 4 GiB disk guard and is retained separately from the later successful run; no denied cache deletion or security-setting change was used.
Real SQL
TestRenameUserIdentitypassed (root 4.69s/package 8.089s) with an external test-only overlay: all existing RENAME ID/credentials/grants/login/ordered-rollback/guard assertions, SOUNDS LIKE positive/negative comparisons, and ODKU update returning OK insert ID 1 while preserving generated session baseline 900 and updated value 20. The overlay adds no product-tree changes; its source/diff/hashes and failed fixture attempts are retained. An initial unsupported LAST_INSERT_ID(argument) fixture failed before ODKU/RENAME; the passing fixture uses the supported zero-argument function after generating ID 900 via two seed rows. Test binary SHA2560c34a926d97b6d6ac1a826fa38060759af4594f0660bfcc2c33cb447de60b55a. Cleanup passed, no owned process-group members/listeners remain.Old
a3ffbf49Ready-event CI 40525129669, including Required 122297080186, completed successfully. It is not relabeled as new-head evidence. New-head CI 40539670894 is in progress. Fresh whole owning race, full distributed BVT and historical released-version upgrades were not rerun locally for this mechanical synchronization; earlier exact-source evidence retains its stated scope. PR remains ready for maintainer review, without merge/automerge/deployment.Historical validation of the initial publication
38ab30c91e69699e82d1937b9d0cfdfa465770b6, based on83c1e23526fc0ed31188abd7fc2ca87cd3a6d4b3. Six unpublished commits were reattributed to the authenticated user's already GitHub-associated identity, preserving every intermediate tree, commit message and timestamp. Identity-only headad8a63f462435fc4a9bdefa148b3daa8e5e7b54fhas the identical tested treeff096cdeba45f9bd6f360f4096c1b88e5e848432. The initial publication successor2dc7122dadded only the two maintained documentation updates; no product/test code changed in that initial identity/docs publication. The later main integration and dead-helper cleanup are recorded separately below.-racepassed on Linux/amd64; compile/vet and formatting/diff checks passed. Unchanged earlier parser/planner evidence is retained as historical, not relabeled as a new whole-suite run.4d1cf85c4917e4463aa8f864e9eb346e1ad7742a34c9588ecbb227c5f088a1e2; base binary SHA256d59afeea13c161d5ea6f3d4ec1bfe3792113f4c3b4d4ba06bf083a1fa1243cb0.Sanitized full evidence is retained separately (archive SHA256
48653eefe6a508fcab98b226c8d81e116afeeaf325994fe555d839c84fc8fc27); raw logs, credentials, database files and binaries are excluded from the product diff. Corrected harness/configuration attempts remain recorded separately from passing terminal runs.Earlier main integration validation
Previously independently reviewed product head:
7ef0ec492807175683966e09c9edf58f77b121ae, treec5e87fff5a81b1398af2f9beba369727531897fc. Mergee789e971retains published history and pinned main00c103b68bd2b39194147508445956f5ece16dda; official regeneration resolved the sole generated-parser conflict with zero grammar conflicts and identical repeat output. Main JSON_TABLE charset support and RENAME USER rules are both retained. The following commit removes only 18 lines containing three unused name-based login SQL constants and three helpers; live user-ID bookkeeping and other management paths remain unchanged. No suppression or golden update.Fresh exact-
7ef0ec49validation on Go 1.27.1/Darwin arm64:TestRenameUserIdentity: PASS, package 8.451s, no skip. Actual binary SHA25624355ebdc6e76e25e9e91fc16c07dc28a77258d819ab091a2ccfe6484ac09fe2.TestDropAccountDuringAsyncIndexInit: PASS, test 7.49s/package 11.783s, no skip. Used CI short/matrixone_test/set-coverage and the CI-policy 484-package instrumentation argument while selecting only this test. Darwin arm64/p2 differs from Linux x64/p8 CI. Full profile SHA2568e0228222099d326fa9b18542ee766dca336efa9899a7ea8d3f48671bdea3ef5.e789e971: 361 passing roots/2245 named entries, no test skips, including RENAME USER and JSON_TABLE charset/roundtrip. Parser/native inputs are unchanged by the helper deletion, so this is explicit closure reuse. Native dependencies were rebuilt for main's USearch 2.26.5 and passed provenance verification.Old
2dc7122dcoverage failed after 124.21s; the first failing assertion is unavailable in retained summary evidence. No identical-cause attribution to another PR or old-baseline reproduction is claimed. Candidate main includesfe4fc722(#31237); the new selected local pass does not certify Linux CI or establish the old failure's exact cause.The earlier
38ab30c9multi-process/bootstrap, deterministic engine conflicts, snapshot/restart and exact base-to-head offline replacement results above remain historical exact-input evidence, not reruns at7ef0ec49. Final integration evidence archive SHA256340f6cd025bf433adc9c264471607c42c26dcf7d078ce3acf6b235a95f14a347includes the recovery bundle, logs and full coverage profile. Owned runtime processes exited and fixture admission/port leases were released.Prior upstream HNSW fixture sync
Previously tested head:
a3ffbf4924876e2c08c3886c95782362eaeef7ae, treeee3acaba7098ad37387c1abf11b75b7fccd81698. Normal merge of maind4ffbae43d55da21526eab01722cbef14bb01ed5(#31457) onto7ef0ec49. The complete delta equals the upstream two-file HNSW fixture patch (15 added/2 removed lines); no product, grammar, dependency or native input changed, and no local golden was generated. The fixture shortens the supported freshness sweep on every CN and restores its default; existing exact serving assertions remain intact.Fresh Go 1.27.1/Darwin arm64 official build and mo-tester comparison passed on isolated independent 1 LOG/1 TN/2 CN/1 PROXY processes. Through each of CN1, CN2 and PROXY,
vector_hnsw_delete_insertpassed twice (58/58 each); adjacentvector_hnsw_modern_dml(14/14),vector_hnsw_clone_sync(13/13) andvector_hnsw_snapshot(27/27) passed once each: 15 runs, 510 statements, zero failed/ignored/abnormal. Both-CN teardown checks passed after every case, canonical files stayed unchanged, all five processes exited 0 and owned listeners were released. Service SHA25677c08a9ad7acf90efe3a7963dbaed9b3a9dc7439c78d00ba26e619fcc9e6b108. SQL, ISCP and two-CN query registration were checked before comparisons. A prior proxy-configuration attempt ran zero cases and was cleaned up before the corrected run.Old
7ef0ec49CI run 40503227834 is terminal failure: ordinary UT, coverage UT, SCA, build and PESS passed; PROXY failed three HNSW assertions (serve_ready expected 1/actual 0 twice, nearest ID expected 2001/actual 777). This is consistent with the missing fixture setting, without independently proving identical root cause. The aggregate coverage summary lacks a complete profile; it does not establish inadequate coverage percentage. The fresh local pass does not replace new-head Linux CI. Prior7ef0ec49product validation remains explicit reuse; historical38ab30c9topology/upgrade evidence is unchanged.Prior a3 CI and review readiness
MatrixOne ALL CI 40515449623 completed successfully for exact head
a3ffbf4924876e2c08c3886c95782362eaeef7ae. CI Required 122261048725, shared build, ordinary UT, coverage UT, SCA, PESS and PROXY multi-CN BVT, and the coverage aggregate all passed. Conditional release/upgrade/optimistic jobs were skipped; they are not additional test passes. This supersedes the initial queued status for this head and leaves the historical7ef0ec49and2dc7122dfailures and their attribution limits above intact. Ready for normal maintainer review; no merge or deployment is requested by this status update.Remaining limits
NOT_RUN: separately pinned historical released-version/catalog upgrade, rolling or mixed-version serving, downgrade, multi-host deployment, complete repository/distributed mo-tester BVT and runtime MySQL comparison oracle. Five legacy labels unavailable through supported fixture creation remain explicitly skipped. The historical exact base-to-head result is not arbitrary released-version upgrade certification. Exact-head CI results and pending checks are recorded above. Skipped CI jobs do not certify the corresponding runtime scenarios; no production release approval is claimed.
Previous exact-head validation (superseded by 25d3008)
Remote head
a26b4503473db9554f4b0a2a3d977aefa25a2278oncodex/issue-30467-rename-user-20261027(baseb0c61f3c771694eb3cdaa44732b56713aafe53b4) was checked in workflow run 43202499673.CI Required, Ubuntu/x86 UT, Linux/arm64 SCA, shared build, and PROXY/PESS multi-CN BVT jobs passed. Conditional release/upgrade and other disabled jobs were skipped; they are not counted as passes.This exact-head CI result does not close the separate Proxy migration, broader compatibility, or deployment-validation limits above.
Current exact-head validation
Remote head
25d3008a44a03fe585332e8b44a774748274ea56oncodex/issue-30467-rename-user-20261027(baseb0c61f3c771694eb3cdaa44732b56713aafe53b4) resolves the two non-blocking SHOW GRANTS findings from the follow-up review: implicit forms now use the authenticated catalog username for the legacy result-column label while retaining stable-user-ID grant filtering; the maintained BVT enables metadata comparison for four implicit forms and expects the resolved username in the initial-session header.Focused tests passed:
GOWORK=off .agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=120s -run '^TestCurrentUserShowGrantsColumnName$' ./pkg/sql/planGOWORK=off .agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=120s -run '^TestTxnCompilerContextCurrentUserIdentity$' ./pkg/frontendgofmtandgit diff --checkpassed. Local distributed BVT was not run.Exact-head GitHub Actions run 43232340868: the PROXY BVT job executed
zz_accesscontrol/rename_user.sqlwith 66/66 assertions passing, zero failed/ignored/abnormal; the PESSIMISTIC multi-CN BVT, Linux/arm64 SCA, shared build, and UT coverage jobs also passed. Ubuntu/x86 UT is still in progress, soCI Requiredis pending and no overall green-CI claim is made. Conditional and disabled jobs were skipped. Localgo vetandgolangci-lintattempts did not complete cleanly because of dependency/type-check diagnostics in unchanged cgo/usearch/vectorindex areas; they are not reported as passes.The remaining Proxy migration and deployment/compatibility limits described above remain separate from these SHOW GRANTS fixes.
Current exact-head sync and validation
Remote PR head
14d8861ff0c2ea91ec339f46072ae186f5aa9698normally merges PR head25d3008a44a03fe585332e8b44a774748274ea56withmain99605b39146848b56accc85bf933badf50a1fefc. The sole integration conflict waspkg/sql/plan/build_show.go: main's account-scoped object resolution and role/explicit-user paths are retained, while implicit current-user grants continue to use the authenticated stable user ID. The maintained rename-user BVT result reflects main's resolved object-scope output.On this exact merged tree, the focused
pkg/sql/planSHOW GRANTS selection passed (5 matching tests) throughmo-cgo-test -count=1;git diff --checkpassed. Local distributed BVT was NOT_RUN becausemo-testerandmo-serviceare unavailable in the worktree. At the time of publication, exact-head UT, coverage UT, SCA, shared build and two E2E checks were still running; completed checks had no failures. Reviewer re-review remains pending. This update does not claim full CI/BVT acceptance or request merge.Historical exact-head validation (62c8b2a; superseded by 043acce)
At that time, remote head
62c8b2a2a313e91aab9652a4be3b464a963a0489was open and Ready, based on main437c648450ffd9f87c574036534c5ca546e88594.The prior-head ALL CI run
43349639832reported PROXYrename_user.sqlat 62/66. Local exact-tree comparison reproduced only four metadata precision mismatches: VARCHAR type/scale and returned rows matched, while the fixture's precision value633differed from the isolated catalog's20538. The four SQL-level metadata overrides are now disabled; row comparisons remain enabled, and the focused plan test covers the identity-specific column label.Using the pinned mo-tester
309a0ca650e0c55e90292767fd61e4976818d66dand a task-owned service built from277b9c685d8f3b17d30a2555268ff09568e5bad3, the exact case passed twice on the same isolated instance: 66/66 each, zero failed/ignored/abnormal. Post-run catalog checks found zeroru30467%users, roles, or databases. The focusedpkg/sql/plantests passed (5 tests, 2.057s); product source is unchanged by this test-only commit.At that time, new-head CI for
62c8b2a2a313had not yet returned. Six reviewers remained requested; approval on that head was pending.Current exact-head sync and validation (043acce)
Remote PR head
043acce4c08d21a1ff7c8f9a5d76938304589764is open and Ready, based on main3ac43c9f56eeaa7cdf6e5f45987792d9878fae8f. The generated MySQL parser conflict was regenerated from the merged grammar; all 803 token constants retain main's values and the parser is gofmt-clean.Local exact-head validation on this merged tree passed:
pkg/sql/parsers/dialect/mysqltests.pkg/proxyTestRenameUserProxyMigrationPrincipal.pkg/sql/planSHOW GRANTS tests.git diff --check.Exact-head ALL CI run 43380980852 completed with
CI Requiredfailed. The Ubuntu/x86 UT job reached its configured 120-minute hard timeout. Its retained log records the batched embedded-clusterpkg/tests/sqlintegrationrunner being terminated with status 143; GitHub reports exit code 2 for the job step. Its summary reports failures inpkg/tests/sqlintegration—TestLoadCSVStrictProbeFallback/BOM_restart_fallback,TestIssue30949PublicationSnapshotLifecycleAdmission,TestDecimalHistoricalDumpRoundtrip,TestFilteredSetOperationProjection, andTestHiddenIndexUserAccess— andpkg/tests/issues—TestCheckpointColdSnapshotSurvivesDatabaseDrop. Retained artifacts omit the individual assertion/error bodies, so the causes and attribution to this PR remain unresolved. This is not being classified as flaky or upstream. Preflight, shared build, Linux/arm64 SCA, coverage UT, PROXY BVT, PESSIMISTIC multi-CN BVT and coverage passed; Connector/J and Iceberg E2Es passed. Conditional and disabled jobs were skipped.fengttt's latest formal question about stable account/user identity and the migration proto has been answered in the PR conversation, and a re-review was requested. Six reviewers are currently requested; reviewer acceptance is pending. Deployment QA remains separate and unperformed. No merge is claimed.
Current exact-head validation (642d4a4)
This test-only delta fixes two direct migration fixtures that bypass Proxy but hand-build
MigrateConnToRequest. They now copy the sourcePrincipalfrom the exported snapshot before releasing it and pass that identity into the target request, matching the feature's fail-closed migration contract.642d4a43c7ac5fdb078d7e82a25049e98fe5193d, the focusedTestCRC32JSONBinaryPreparedandTestCRC32AndPlainPreparedMigrateBetweenCNsselection passed with-count=1.gofmtandgit diff --checkpassed. Localgo vetdid not complete: unchanged usearch CGo dependency compilation sees an installed-header/API arity mismatch; this is not reported as a code pass or attributed to the two edited tests.CI Requiredis not yet terminal.