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

'WITH WITH' in alter keyspace statements causes NPE

Log workAgile BoardRank to TopRank to BottomAttach 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
    • Normal
    • Resolution: Fixed
    • 2.0.17, 2.1.7, 2.2.0 rc2
    • None
    • None
    • Normal

    Description

      Running any of these statements:

      ALTER KEYSPACE WITH WITH DURABLE_WRITES = true;
      ALTER KEYSPACE ks WITH WITH DURABLE_WRITES = true;
      CREATE KEYSPACE WITH WITH DURABLE_WRITES = true;
      CREATE KEYSPACE ks WITH WITH DURABLE_WRITES = true;
      

      Fails, raising a SyntaxException and giving a NullPointerException as the reason for failure. This happens in all versions I tried, including 2.0.15, 2.1.5, and HEAD on cassandra-2.0, cassandra-2.1, cassandra-2.2, and trunk.

      EDIT: A dtest is here, but it would probably be more appropriate to test with unit tests.

      Attachments

        1. 9565-2.0.txt
          5 kB
          Benjamin Lerer
        2. 9565-2.1.txt
          3 kB
          Benjamin Lerer

        Activity

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

          People

            blerer Benjamin Lerer Assign to me
            mambocab Jim Witschey
            Benjamin Lerer
            Robert Stupp
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment