Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-10569

Keyspace validation errors are getting lost in system_add_keyspace

    XMLWordPrintableJSON

Details

    • Normal

    Description

      The following:

      cassandraserver.system_add_keyspace(
          new KsDef("xxx", SimpleStrategy.class.getSimpleName(), 
                    Lists.<CfDef>newArrayList()));
      

      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 possibly affects system_update_keyspace as well.

      Attachments

        Activity

          People

            samt Sam Tunnicliffe
            mike_tr_adamson Mike Adamson
            Sam Tunnicliffe
            Paulo Motta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: