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

DROP KEYSPACE IF EXISTS fails if the KS does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.1 rc2
    • None
    • None
    • 2.1-rc1 on Ubuntu 13 using CQLSH

    • Normal

    Description

      I get an error message when I try to drop a keyspace that does not exist with the IF EXISTS keywords :

      cqlsh> drop keyspace if exists myks;
      <ErrorMessage code=0000 [Server error] message="java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: One row required, 0 found">
      

      I think that it was working in a previous 2.1-beta* version.
      Feature : CASSANDRA-2737
      Documentation : http://www.datastax.com/documentation/cql/3.1/cql/cql_reference/drop_keyspace_r.html

      Attachments

        Activity

          People

            Unassigned Unassigned
            flarcher Fabrice Larcher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: