You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: protected_database CREATE/DROP permission assertions fail through multi-CN PROXY on 4.2-dev #32559
Related: #27265 tracks multi-CN lower_case_table_names visibility, and closed #26270 tracks global-variable refresh ordering. Neither establishes the cause of the permission failures below.
test/distributed/cases/tenant/privilege/protected_database.sql, rows 186–189, has four failures. Under the test's ordinary writer user (protected_bvt_acc:protected_bvt_user:protected_bvt_writer), all these statements succeed, while the oracle expects internal error: do not have privilege to execute the statement:
The job log records the expected permission error versus an empty successful response at 2026-11-11 10:49:24 UTC. The case finishes with 164 statements, 160 successes, 4 failures.
Expected Behavior
The ordinary writer must not create or drop the protected databases, including the case variants exercised by the existing test. The existing permission assertions should remain strict.
Steps to Reproduce
Run the existing test/distributed/cases/tenant/privilege/protected_database.sql through the multi-CN PROXY endpoint, preserving its full account/role and global/session-variable setup. Inspect the four statements at rows 186–189.
Observed in the linked CI; not independently reproduced on a clean multi-CN baseline in this investigation. Reproduction frequency and root cause remain unconfirmed.
Additional information
This is separate from PR #32541's bounded scalar CTE optimization: CREATE/DROP DATABASE do not enter its SELECT/ordinary INSERT CTE-reuse path. Its new CTE BVT passes 35/35, and UT/SCA pass in the same run. No claim is made that this proves a particular cache or routing root cause. Track and fix the authorization/setup issue separately rather than weakening the oracle or adding unrelated permission changes to the CTE PR.
Activity
fix: stabilize JoinMap, Compose, and authorization (#32558)