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

renaming a keyspace, then trying to use original name again makes errorations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7 beta 2
    • None
    • None
    • encountered on Debian squeeze, with cassandra from HEAD (r1001931). effects can be seen with both Telephus and Pycassa as clients; probably any.

    • Low

    Description

      My test case does the following:

      • Create a keyspace with at least one CF in it.
      • Rename that keyspace
      • Create a new keyspace with the same original name, containing a CF with the same name as earlier.

      The second keyspace creation receives an error (although the keyspace does get created):

      javax.management.InstanceAlreadyExistsException: org.apache.cassandra.db:type=ColumnFamilies,keyspace=keyspacename,columnfamily=cfname

      After that point, trying to do almost anything with the new keyspace will generate the same error- even trying to drop it. This persists until cassandra itself is restarted.

      One supposes that some JMX thing is lacking reregistration upon keyspace rename.

      Attachments

        Activity

          People

            gdusbabek Gary Dusbabek
            thepaul paul cannon
            Gary Dusbabek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: