Skip to content

[Bug]: protected_database CREATE/DROP permission assertions fail through multi-CN PROXY on 4.2-dev #32559

Closed

Description

@ck89119

Is there an existing issue for the same bug?

  • I have checked the existing issues.

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.

Branch Name

4.2-dev (CI for PR #32541)

Commit ID

0cc3f6f

Other Environment Information

Actual Behavior

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:

create database `protectedcasedb`;
drop database `protectedcasedb`;
create database `ProtectedCaseDB`;
drop database `ProtectedCaseDB`;

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

  1. added
    kind/bug
    on Nov 11, 2026
  2. added a commit that references this issue on Nov 12, 2026
    db0a7e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions