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

Can't specify certain keyspace properties in CQL

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.1
    • None
    • Low

    Description

      A user using EC2MultiRegionSnitch, where the datacenter name has to match the AWS region names, will not be able to specify a keyspace's replica counts for those datacenters using CQL. AWS region names contain hyphens, which are not valid identifiers in CQL, and CQL keyspace/columnfamily properties must be identifiers or identifiers separated by colons.

      Example:

      CREATE KEYSPACE Foo
        WITH strategy_class = 'NetworkTopologyStrategy'
            AND strategy_options:"us-east"=1
            AND strategy_options:"us-west"=1;
      

      (see http://mail-archives.apache.org/mod_mbox/cassandra-user/201205.mbox/browser for context)

      ..will not currently work, with or without the double quotes.

      CQL should either allow hyphens in COMPIDENT, or allow quoted parts of a COMPIDENT token.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            slebresne Sylvain Lebresne Assign to me
            thepaul paul cannon
            Sylvain Lebresne
            Pavel Yaskevich
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment