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

system_drop_keyspace can cause a node to be unstartable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.7 beta 1
    • None
    • None
    • Mac OS X 10.6.3 (10D573) / Darwin 10.3.0

    • Normal

    Description

      calling thriftClient_.system_drop_keyspace(keyspaceName) on a newly created keyspace, then stopping the node renders the node unstartable. Results in the following stacktrace:

      10/06/17 14:23:16 ERROR thrift.CassandraDaemon: Fatal exception during initialization
      java.io.EOFException
      at java.io.DataInputStream.readFully(DataInputStream.java:180)
      at java.io.DataInputStream.readUTF(DataInputStream.java:592)
      at java.io.DataInputStream.readUTF(DataInputStream.java:547)
      at org.apache.cassandra.config.KSMetaData.deserialize(KSMetaData.java:92)
      at org.apache.cassandra.db.DefsTable.loadFromStorage(DefsTable.java:75)
      at org.apache.cassandra.config.DatabaseDescriptor.loadSchemas(DatabaseDescriptor.java:422)
      at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:103)
      at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:90)
      at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:221)

      my repro:

      start new node with empty data directory
      create a new keyspace
      drop the keyspace
      attempt to restart the node, notice that it fails to start.

      Attachments

        Activity

          People

            gdusbabek Gary Dusbabek
            mbryant Mason Bryant
            Gary Dusbabek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: