-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: CREATE SCHEMA fails if cluster setting server.eventlog.enabled is set to false #86132
Copy link
Copy link
Labels
A-schema-changesA-schema-descriptorsRelating to SQL table/db descriptor handling.Relating to SQL table/db descriptor handling.C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)branch-masterFailures and bugs on the master branch.Failures and bugs on the master branch.release-blockerIndicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked.Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked.
Description
Describe the problem
After SET CLUSTER SETTING server.eventlog.enabled = false, CREATE SCHEMA fails desc validation:
demo@127.0.0.1:26257/defaultdb> create schema s;
ERROR: schema "s" (104): expected matching namespace entry, found none
To Reproduce
Change the cluster setting and try CREATE SCHEMA via SQL.
Expected behavior
CREATE SCHEMA works regardless of setting value.
Environment:
master branch
cc @ajwerner for triage
Jira issue: CRDB-18593
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-schema-changesA-schema-descriptorsRelating to SQL table/db descriptor handling.Relating to SQL table/db descriptor handling.C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)branch-masterFailures and bugs on the master branch.Failures and bugs on the master branch.release-blockerIndicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked.Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked.