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

Executing a prepared CREATE KEYSPACE multiple times doesn't work

    XMLWordPrintableJSON

Details

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

    Description

      See user reports on the java driver JIRA: https://datastax-oss.atlassian.net/browse/JAVA-223. Preparing CREATE KEYSPACE queries is not particularly useful but there is no reason for it to be broken.

      The reason is that calling KSPropDef/CFPropDef.validate() methods are not idempotent. Attaching simple patch to fix.

      Attachments

        1. 6471.txt
          2 kB
          Sylvain Lebresne

        Activity

          People

            slebresne Sylvain Lebresne
            slebresne Sylvain Lebresne
            Sylvain Lebresne
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: