Repository navigation
fix(frontend): support JDBC session read-only mode - #29193
Conversation
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? |
393695c to
fa8ffea
Compare
|
Addressed the requested public-path coverage and rebased the PR onto current
|
0d94ab4 to
581bbda
Compare
XuPeng-SH
left a comment
There was a problem hiding this comment.
GPT-6 High deep review at exact head 1061233 against base 16d8e51: APPROVE. Previous blockers are resolved: static preflight now continues across unrelated literal assignments, and public-path tests prove rejected statements preserve session/global state, uncommitted visibility, cross-session isolation, and rollback behavior. Verified current-head CI, including the named BVT results, plus Connector/J Pool Reset E2E on all four configured versions. No remaining blocking findings.
gouhongshen
left a comment
There was a problem hiding this comment.
Codex automated review
Reviewed the full diff and all prior reviews/comments. The prior partial-mutation and public-path evidence blockers are resolved at this head. SESSION access-mode behavior, alias synchronization, default/privilege/active-transaction validation, migration compatibility, and fail-closed temporary-index visibility are consistent with the documented contracts. Focused source inspection passed; exact-head CI and Connector/J E2E are green.
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #29185
Fixes #29278
What this PR does / why we need it:
Connector/J's
Connection.setReadOnly(true)sendsSET SESSION TRANSACTION READ ONLY. MatrixOne must accept that session access-mode statement and allow switching back withsetReadOnly(false).transaction_read_onlyandtx_read_onlyconsistent across session assignment, defaults, legacy aliases, and connection migration.DEFAULTtransaction assignments across unrelated static settings, while preserving the existing left-to-right boundary at the first dynamic expression.SystemIndexRelkind, live same-account/database/session temporary parent, exact parent ID, and reciprocal child-ID membership all validate.CREATE INDEXbehavior.Access-mode
SET TRANSACTION(next transaction) andSET GLOBAL TRANSACTIONremain unsupported. This PR does not add server-side write enforcement or general atomicity for arbitrary dynamic SET expressions.Verification
Final head:
106123355142f41c5172539c673fdf75ba38ba06, rebased ontomainat16d8e5106caaedfe0a7296e4f628683e1b6a92b4.Passed after the test cleanup:
.agents/skills/mo-dev/scripts/mo-cgo-test -v -count=1 -timeout=180s -run '^(TestCommittedTemporaryIndexCatalogVisibility|TestTemporaryIndexIDLookupRejectsSnapshotNameIdentityMismatch|TestTemporaryIndexFallbackRejectsOutOfScopeItems)$' ./pkg/vm/engine/disttae.agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=300s ./pkg/vm/engine/disttaegofmtandgit diff --check.agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=600s ./pkg/frontendpassed after rebase; the only subsequent change was test-only cleanup indisttae.The specific Proxy multi-CN
temp_ddl_transactions.sqlBVT has not been run locally on this head. GitHub checks were triggered by the push; no updated-head CI success is claimed until they finish.