Repository navigation
test(hnsw): shorten the cross-CN freshness sweep in vector_hnsw_delete_insert (#31456) - #31457
Conversation
…e_insert (matrixorigin#31456) A CN that does not run the ISCP sync keeps its cached HNSW model until the cross-CN freshness sweep, about 10 minutes by default, so the case's 120 s serving waits time out in the multi-CN compose BVT. Set SetVectorIndexFreshnessInterval to 1s on every CN for the case and restore the default at exit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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: a7a876bb338d70660f47dfbb2b38b1c223244a91
Assessment: approve
The complete two-file change appropriately uses the existing cross-CN freshness control to fix the test's timing mismatch. It preserves all original assertions and wait bounds, checks control failures, and restores the default cadence. Production behavior is unchanged. No actionable findings or disputed discussion points remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Reviewed linked issue 31456, the complete discussion, and the control, RPC, cache-refresh and restoration paths. Saved discussion-assessment.json.
-
Reused frozen exact-head successful shared-build, compose PROXY and COMPOSE/PESSIMISTIC BVT outcomes.
-
Static audit passed: frozen source identity, patch consistency, git diff --check, unchanged original SQL/result oracles and complete discussion coverage. Receipt checks/1793101567781400536-3.json matches review-audit.log and check-ledger.json in the assigned diagnostic directory.
Limitations:
-
CI evidence contains suite outcomes without raw per-case logs; the author's repeated separate-process results remain author-reported. No local native tests were rerun.
-
The test temporarily increases background sweep frequency across CNs and restores the default; it does not measure production freshness latency or performance.
✅ Merged into
|
| Condition | Required by | |
|---|---|---|
| ✅ | #review-threads-unresolved = 0 |
GitHub branch protection |
| ✅ | github-review-approved |
GitHub branch protection |
The batch, tested in place
| Condition | Required by | |
|---|---|---|
| ✅ | any of: check-success = CI Required, check-neutral = CI Required, check-skipped = CI Required |
GitHub branch protection |
Times in UTC · dashboard · how the merge queue works
Strict parallel LOAD boundary planning could scan an entire illegal CSV tail and report each failed type conversion before execution returned the original row error. Limit each strict probe to 256 KiB and 256 candidate records, then retain confirmed ranges and merge the remaining tail. Propagate cancellation through probing and range planning, with exactly one reader close. Add contextual parse entry points so speculative conversions suppress error reporting while ordinary callers keep their existing values, errors and reporting. The regular CSV reader keeps its existing buffer size. Validation on darwin/arm64, Go 1.27.1: - Complete types, bytejson and external package tests pass; incremental vet and configured lint pass. - Deterministic tests cover byte/record limits, truncated boundaries, cancellation, close-error precedence, range coverage and all affected conversion families. Focused reporter-isolation race tests pass 100 repetitions each; the SQL observer/config case passes four race repetitions. - Embedded SQL crosses the parallel admission threshold with 601 rows: misaligned columns and invalid decimals retain serial error/rollback behavior; the valid control uses two ranges and preserves every row and value. - The same 100,000-row diagnostic now consumes 80 KiB with zero error reports, versus 2.3 MB and 200,000 reports before the fix. No large-file latency benchmark or new-head CI pass is claimed. Very long records or illegal prefixes may reduce parallelism by exhausting the probe budget. Blocking storage Read/Close remains owned by the file service. The issue remains open for the reporter to verify after merge. CI refresh validation (`ee3f6c97761a44039497210d2b37d193876aa3ea`, official base `d4ffbae43d55da21526eab01722cbef14bb01ed5`): - Mechanically rebased the two existing commits under the explicit CI-refresh instruction. Both patches remain equivalent in `git range-diff`; all 20 PR source/test files are byte-identical to published head `08b1fac9dc54a4120f470ac4a6d88a2d469a1689`. No functional change was added to this PR. - Official main now includes #31457, which shortens the HNSW test's cross-CN freshness sweep and restores its default afterward. This addresses the serving-wait/old-neighbor signature in [run 40485563531](https://github.com/matrixorigin/matrixone/actions/runs/40485563531), PESSIMISTIC job 122130701973 (rows 59/91 wait timed out; row 66 expected 2001, got 777). Coverage merge and CI Required failed downstream; no coverage verdict was calculated. Regular UT, UT Coverage, SCA and PROXY BVT passed on the preceding head. - Fresh validation on this head (darwin/arm64, Go 1.27.1): `.agents/skills/mo-dev/scripts/mo-cgo-test -v -count=1 -timeout=240s -run '^TestLoadCSVStrictProbeFallback$' ./pkg/tests/sqlintegration` — PASS (7.637s), all three 601-row scenarios: serial error/rollback parity, invalid-tail fallback and complete valid two-range loading. Test services and leases closed cleanly. - Prior owning-package, bounded-probe/cancellation, quiet-reporting, race and static evidence is reused for unchanged closures. The fresh SQL consumer check covers the upstream LOAD binder/parser changes. Diff/artifact checks pass; independent delta review passes. No broad suite was repeated solely for a SHA change. - This rebase triggers fresh CI instead of rerunning the old workflow. New-head Linux CI and distributed BVT remain pending; no new-head CI pass is claimed. Quiet speculative type conversions retain normal parser configuration/resource-limit diagnostics; blocked storage Read/Close remains file-service-owned. Approved by: @XuPeng-SH
## What type of PR is this? - [ ] API-change - [ ] BUG - [x] Improvement - [x] Documentation - [x] Feature - [x] Test and CI - [ ] Code Refactoring ## 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 new` currently 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](https://github.com/matrixorigin/matrixone/blob/823dc248403520744a6ea9d777cc065fe43910ff/docs/design/20261026-rename-user.md) · [operational reference](https://github.com/matrixorigin/matrixone/blob/823dc248403520744a6ea9d777cc065fe43910ff/docs/reference/rename-user.md). ### PROXY BVT unordered SHOW GRANTS comparison correction The PROXY job in CI run [40861917012](https://github.com/matrixorigin/matrixone/actions/runs/40861917012/job/123411644943) 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:0` selected a comparator that preserves differing keys rather than the tester's normal full-row unordered comparison. Published head `f8d6eedd97a5600b4d6e3dee4ff1059f83bbbcd2` removes the 11 inappropriate sortkey directives and adds an explanatory comment. Executable SQL, session/capture assertions and the canonical `.result` file 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 with `nometa` and auto-reconnect disabled: - Original tagged fixture + permutation: expected 9 ordering failures, reproduced. - Corrected fixture + identical permutation: 66/66 pass. - Canonical result: 66/66 pass twice on the same instance. - Remove one duplicate connect grant from each affected expected block: expected 9 failures, verified. - Replace the principal in each affected expected block: expected 9 failures, verified. - All scenarios: zero ignored/abnormal cases; the six-scenario validation driver passes. 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 `4e410344e7617f2a49fc8a08d652455d471d9553` has tree `166177c66dd3b5f0bab9449ba75448f64b80ec2e`, identical to tested `ec4819f58441abc619b3bc43bcfe0c58b100af44`. 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: - Frontend owning normal: PASS 25.021s; owning race: PASS 50.377s, 2768 passing roots and the existing `TestRuleCacheDoubleCheckLocking` skip. - Parser owning group: PASS 0.175s; tree group: PASS 0.035s. - Real `TestRenameUserShowGrants`: PASS 4.776s, task-owned single-CN TCP-only fixture. - New maintained `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 use `nometa` and per-statement `sortkey`; they do not claim column-metadata validation. Auto-reconnect is disabled; connection-ID checks prove existing-session retention. - Five affected packages' all-vet/compile checks and formatting/diff checks passed. Configured incremental molint and golangci-lint 2.14.0 across the same five packages passed with zero issues. The first golangci process was killed (137); a bounded recovery kept all existing rules/packages, used concurrency 1 and GOMEMLIMIT=5GiB, and passed in 3m17s with peak 3581 MiB. No suppression or system setting changed. 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](https://github.com/matrixorigin/matrixone/actions/runs/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`, tree `620ca38269fc65111981af254d13ad486790ca31`, normally merges main `3b7752551b8a1cc60daddecde9a5438d5357cdf4` into `a3ffbf49`. Only generated `mysql_sql.go` conflicted; grammar and frontend status handling merged automatically. Official regeneration twice produced identical SHA256 `25b9822d1c97f266e4fbe6910333ce338312bbb60db41801805bf3f2246e83f4`, 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 `TestRenameUserIdentity` passed (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 SHA256 `0c34a926d97b6d6ac1a826fa38060759af4594f0660bfcc2c33cb447de60b55a`. Cleanup passed, no owned process-group members/listeners remain. Old `a3ffbf49` Ready-event [CI 40525129669](https://github.com/matrixorigin/matrixone/actions/runs/40525129669), including Required 122297080186, completed successfully. It is not relabeled as new-head evidence. New-head [CI 40539670894](https://github.com/matrixorigin/matrixone/actions/runs/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 - Tested product head: `38ab30c91e69699e82d1937b9d0cfdfa465770b6`, based on `83c1e23526fc0ed31188abd7fc2ca87cd3a6d4b3`. Six unpublished commits were reattributed to the authenticated user's already GitHub-associated identity, preserving every intermediate tree, commit message and timestamp. Identity-only head `ad8a63f462435fc4a9bdefa148b3daa8e5e7b54f` has the identical tested tree `ff096cdeba45f9bd6f360f4096c1b88e5e848432`. The initial publication successor `2dc7122d` added 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. - Go 1.27.1. Exact-head frontend focused consumer tests, owning normal and owning `-race` passed 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. - Darwin/arm64 real SQL: frozen embedded identity test and supplemental ID/login/grants/session, atomic pairs, destination-name, DEFINER and CLONE RR/RC checks passed. Snapshot restore before and after rename and same-version restart passed. - Deterministic real-engine interleavings: distinct operators crossed actual empty-target reads, then produced real duplicate-key error 1062 and whole-statement rollback. Ordinary-role GRANT/DROP binding revalidation and routine create/replace versus rename used real transaction locks and controlled barriers. The GRANT case does not claim administrator promotion; supported guards reject that promotion path. These engine interleavings are separate from the Go race-detector result. - Four independent OS processes (1 LOG/1 TN/2 CN): both CNs reported authoritative task-service creation and the expected commit; both authenticated the same special sentinel identity before feature SQL. Cross-CN rename/login, stable ID/credentials/grants, old session and special DEFINER/protection checks passed. All four processes exited 0 and owned listeners were released. - Fully stopped exact base→head replacement: old credentials logged into both base CNs and read granted data; all four old processes exited 0 before any head process started. The same controlled storage/UUIDs survived replacement; head repeated bootstrap admission, preserved identity/grants/data/function behavior, and passed rename/login. Head binary SHA256 `4d1cf85c4917e4463aa8f864e9eb346e1ad7742a34c9588ecbb227c5f088a1e2`; base binary SHA256 `d59afeea13c161d5ea6f3d4ec1bfe3792113f4c3b4d4ba06bf083a1fa1243cb0`. 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`, tree `c5e87fff5a81b1398af2f9beba369727531897fc`. Merge `e789e971` retains published history and pinned main `00c103b68bd2b39194147508445956f5ece16dda`; 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-`7ef0ec49` validation on Go 1.27.1/Darwin arm64: - Configured incremental lint across five feature packages: 0 issues. - Frontend normal: 2699 passing roots, one existing skip, 29.591s; owning race: 2698 passing roots, the same skip, 50.685s. The extra normal-only allocation test has an explicit !race build constraint. All 17 feature roots passed in both modes; count=1 and vet=all. - Minimal real SQL `TestRenameUserIdentity`: PASS, package 8.451s, no skip. Actual binary SHA256 `24355ebdc6e76e25e9e91fc16c07dc28a77258d819ab091a2ccfe6484ac09fe2`. - `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 SHA256 `8e0228222099d326fa9b18542ee766dca336efa9899a7ea8d3f48671bdea3ef5`. - Parser owning group from merge `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 `2dc7122d` coverage 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 includes `fe4fc722` (#31237); the new selected local pass does not certify Linux CI or establish the old failure's exact cause. The earlier `38ab30c9` multi-process/bootstrap, deterministic engine conflicts, snapshot/restart and exact base-to-head offline replacement results above remain historical exact-input evidence, not reruns at `7ef0ec49`. Final integration evidence archive SHA256 `340f6cd025bf433adc9c264471607c42c26dcf7d078ce3acf6b235a95f14a347` includes 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`, tree `ee3acaba7098ad37387c1abf11b75b7fccd81698`. Normal merge of main `d4ffbae43d55da21526eab01722cbef14bb01ed5` (#31457) onto `7ef0ec49`. 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_insert` passed twice (58/58 each); adjacent `vector_hnsw_modern_dml` (14/14), `vector_hnsw_clone_sync` (13/13) and `vector_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 SHA256 `77c08a9ad7acf90efe3a7963dbaed9b3a9dc7439c78d00ba26e619fcc9e6b108`. 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 `7ef0ec49` [CI run 40503227834](https://github.com/matrixorigin/matrixone/actions/runs/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. Prior `7ef0ec49` product validation remains explicit reuse; historical `38ab30c9` topology/upgrade evidence is unchanged. ### Prior a3 CI and review readiness [MatrixOne ALL CI 40515449623](https://github.com/matrixorigin/matrixone/actions/runs/40515449623) completed successfully for exact head `a3ffbf4924876e2c08c3886c95782362eaeef7ae`. [CI Required 122261048725](https://github.com/matrixorigin/matrixone/actions/runs/40515449623/job/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 historical `7ef0ec49` and `2dc7122d` failures 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 `a26b4503473db9554f4b0a2a3d977aefa25a2278` on `codex/issue-30467-rename-user-20261027` (base `b0c61f3c771694eb3cdaa44732b56713aafe53b4`) was checked in workflow run [43202499673](https://github.com/matrixorigin/matrixone/actions/runs/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 `25d3008a44a03fe585332e8b44a774748274ea56` on `codex/issue-30467-rename-user-20261027` (base `b0c61f3c771694eb3cdaa44732b56713aafe53b4`) 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/plan` - `GOWORK=off .agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=120s -run '^TestTxnCompilerContextCurrentUserIdentity$' ./pkg/frontend` - `gofmt` and `git diff --check` passed. Local distributed BVT was not run. Exact-head GitHub Actions run [43232340868](https://github.com/matrixorigin/matrixone/actions/runs/43232340868): the PROXY BVT job executed `zz_accesscontrol/rename_user.sql` with 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, so `CI Required` is pending and no overall green-CI claim is made. Conditional and disabled jobs were skipped. Local `go vet` and `golangci-lint` attempts 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 `14d8861ff0c2ea91ec339f46072ae186f5aa9698` normally merges PR head `25d3008a44a03fe585332e8b44a774748274ea56` with `main` `99605b39146848b56accc85bf933badf50a1fefc`. The sole integration conflict was `pkg/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/plan` SHOW GRANTS selection passed (5 matching tests) through `mo-cgo-test -count=1`; `git diff --check` passed. Local distributed BVT was **NOT_RUN** because `mo-tester` and `mo-service` are 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 `62c8b2a2a313e91aab9652a4be3b464a963a0489` was open and Ready, based on main `437c648450ffd9f87c574036534c5ca546e88594`. The prior-head ALL CI run `43349639832` reported PROXY `rename_user.sql` at 62/66. Local exact-tree comparison reproduced only four metadata precision mismatches: VARCHAR type/scale and returned rows matched, while the fixture's precision value `633` differed from the isolated catalog's `20538`. 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 `309a0ca650e0c55e90292767fd61e4976818d66d` and a task-owned service built from `277b9c685d8f3b17d30a2555268ff09568e5bad3`, the exact case passed twice on the same isolated instance: 66/66 each, zero failed/ignored/abnormal. Post-run catalog checks found zero `ru30467%` users, roles, or databases. The focused `pkg/sql/plan` tests passed (5 tests, 2.057s); product source is unchanged by this test-only commit. At that time, new-head CI for `62c8b2a2a313` had not yet returned. Six reviewers remained requested; approval on that head was pending. ### Current exact-head sync and validation (043acce) Remote PR head `043acce4c08d21a1ff7c8f9a5d76938304589764` is open and Ready, based on main `3ac43c9f56eeaa7cdf6e5f45987792d9878fae8f`. 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: - Full `pkg/sql/parsers/dialect/mysql` tests. - Focused frontend RENAME USER and renamed-binding tests. - `pkg/proxy` `TestRenameUserProxyMigrationPrincipal`. - Focused `pkg/sql/plan` SHOW GRANTS tests. - `git diff --check`. Exact-head ALL CI run [43380980852](https://github.com/matrixorigin/matrixone/actions/runs/43380980852) completed with `CI Required` failed. The Ubuntu/x86 UT job reached its configured 120-minute hard timeout. Its retained log records the batched embedded-cluster `pkg/tests/sqlintegration` runner being terminated with status 143; GitHub reports exit code 2 for the job step. Its summary reports failures in `pkg/tests/sqlintegration` — `TestLoadCSVStrictProbeFallback/BOM_restart_fallback`, `TestIssue30949PublicationSnapshotLifecycleAdmission`, `TestDecimalHistoricalDumpRoundtrip`, `TestFilteredSetOperationProjection`, and `TestHiddenIndexUserAccess` — and `pkg/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 source `Principal` from the exported snapshot before releasing it and pass that identity into the target request, matching the feature's fail-closed migration contract. - On head `642d4a43c7ac5fdb078d7e82a25049e98fe5193d`, the focused `TestCRC32JSONBinaryPrepared` and `TestCRC32AndPlainPreparedMigrateBetweenCNs` selection passed with `-count=1`. - `gofmt` and `git diff --check` passed. Local `go vet` did 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. - Exact-head CI run [44086606829](https://github.com/matrixorigin/matrixone/actions/runs/44086606829) has UT, coverage UT, arm64 SCA and shared build in progress; preflight and coverage eligibility passed. Connector/J attempt [44086611249](https://github.com/matrixorigin/matrixone/actions/runs/44086611249) failed while fetching Maven 3.9.9 from Maven Central; only that job is being rerun. `CI Required` is not yet terminal. - Existing reviewer requests remain active. No review acceptance at this new head, merge, or broader QA is claimed.
What type of PR is this?
Which issue(s) this PR fixes:
issue #31456
What this PR does / why we need it:
pessimistic_transaction/vector/vector_hnsw_delete_insert.sqltimes out in the multi-CN compose BVT. Thewait_serveprobes added in #31300 wait 120 s for the serving CN to load the new HNSW generation. But a CN that does not run the ISCP sync keeps its cached model until the cross-CN freshness sweep, which takes about 10–12.5 minutes by default. That is the documented eventual-consistency design inpkg/vectorindex/cache(StaleChecker).-launchruns all CNs in one process with one shared cache, so the failure does not show up locally.The case now sets
mo_ctl('cn', 'SetVectorIndexFreshnessInterval', '1s')on every CN at the start and restores0at exit, asgit4data/branch/edge/branch_multi_index_restore_init.sqldoes. This is a test-only change.Validation
The setup is log, TN, proxy and two CNs, each a separate
mo-service -cfgprocess, so each CN has its own cache as in the compose CI. Results withmo-tester -m run:wait_servetime out, EXPECT 2001 / ACTUAL 777 (the CI signature)Direct probe: after the meta checksum changed, cn2 returned the old top id (777) for more than 2 minutes, both inside and outside a transaction. After
SetVectorIndexFreshnessInterval '1s'it returned 2001 within about 5 s.No other BVT waits on HNSW serving freshness without this knob.
🤖 Generated with Claude Code