cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Adamson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-10569) Keyspace validation errors are getting lost in system_add_keyspace
Date Thu, 22 Oct 2015 15:50:27 GMT
Mike Adamson created CASSANDRA-10569:
----------------------------------------

             Summary: Keyspace validation errors are getting lost in system_add_keyspace
                 Key: CASSANDRA-10569
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10569
             Project: Cassandra
          Issue Type: Bug
          Components: Core
            Reporter: Mike Adamson
             Fix For: 3.0.0


The following:
{noformat}
cassandraserver.system_add_keyspace(
    new KsDef("xxx", SimpleStrategy.class.getSimpleName(), 
              Lists.<CfDef>newArrayList()));
{noformat}
used to throw an {{InvalidRequestException}} in 2.1. 

In 3.0 the strategy validation has been removed from {{KeyspaceMetadata.validate}} so the
strategy errors don't get picked up until the schema change has been announced. As a result
the {{ConfigurationError}} is swallowed in {{FBUtilities.waitOnFuture}} and thrown on as a
{{RuntimeException}}.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message