[
https://issues.apache.org/jira/browse/CASSANDRA-20915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Miklosovic updated CASSANDRA-20915:
------------------------------------------
Fix Version/s: 4.0.x
4.1.x
5.0.x
5.x
> Fixed incorrect error message constant for keyspace name length validation
> --------------------------------------------------------------------------
>
> Key: CASSANDRA-20915
> URL: https://issues.apache.org/jira/browse/CASSANDRA-20915
> Project: Apache Cassandra
> Issue Type: Bug
> Components: CQL/Interpreter
> Reporter: Yifan Cai
> Assignee: Yifan Cai
> Priority: Normal
> Fix For: 4.0.x, 4.1.x, 5.0.x, 5.x
>
>
> The validateKeyspaceName method incorrectly referenced TABLE_NAME_LENGTH
> (222) instead of NAME_LENGTH (48) in the error message when keyspace names
> exceeded the maximum allowed length.
> For example,
> {code:java}
> org.apache.cassandra.exceptions.ConfigurationException: Keyspace name must
> not be more than 222 characters long (got 51 characters for
> "compression_dict_manager_test_keyspace_without_dict")
> at
> org.apache.cassandra.schema.KeyspaceMetadata.validateKeyspaceName(KeyspaceMetadata.java:80)
> at
> org.apache.cassandra.schema.KeyspaceMetadata.validate(KeyspaceMetadata.java:403)
> at
> org.apache.cassandra.schema.SchemaTestUtil.announceNewKeyspace(SchemaTestUtil.java:36)
> at
> org.apache.cassandra.SchemaLoader.createKeyspace(SchemaLoader.java:252)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]