You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stefan Miklosovic (Jira)" <ji...@apache.org> on 2025/09/24 08:29:00 UTC

[jira] [Comment Edited] (CASSANDRA-20915) Fixed incorrect error message constant for keyspace name length validation

    [ https://issues.apache.org/jira/browse/CASSANDRA-20915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18022195#comment-18022195 ] 

Stefan Miklosovic edited comment on CASSANDRA-20915 at 9/24/25 8:28 AM:
------------------------------------------------------------------------

https://pre-ci.cassandra.apache.org/job/cassandra/101/#showFailuresLink


was (Author: smiklosovic):
https://pre-ci.cassandra.apache.org/job/cassandra/100/

> 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: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org