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

more info on logging when SSTable cannot create the builder due to version mismatch

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.8.2
    • None
    • None

    Description

      When run into the following:

      2011-06-21 22:44:43,308 INFO [org.apache.cassandra.streaming.StreamOutSession] - Streaming to /10.128.64.163
      2011-06-21 22:44:51,993 ERROR [org.apache.cassandra.service.AbstractCassandraDaemon] - Fatal exception in thread Thread[Thread-17651,5,main]
      java.lang.RuntimeException: Cannot recover SSTable with version a (current version f).
      at org.apache.cassandra.io.sstable.SSTableWriter.createBuilder(SSTableWriter.java:237)
      at org.apache.cassandra.db.CompactionManager.submitSSTableBuild(CompactionManager.java:938)
      at org.apache.cassandra.streaming.StreamInSession.finished(StreamInSession.java:107)
      at org.apache.cassandra.streaming.IncomingStreamReader.readFile(IncomingStreamReader.java:112)
      at org.apache.cassandra.streaming.IncomingStreamReader.read(IncomingStreamReader.java:61)
      at org.apache.cassandra.net.IncomingTcpConnection.run(IncomingTcpConnection.java:91)

      There is no indication on which SSTable is at fault. To recover from this, one would need to run nodetool scrub.

      This may however take some time, depending the SSTables' sizes, and it is possible that only 1 keyspace or CF is needed to be rebuilt by scrub.

      It'd be nice to print more details of the SSTable here in case the end-user prefers to just scrub the keyspace/cf in question.

      Attachments

        1. 2813.patch
          1.0 kB
          Jackson Chung

        Activity

          People

            cywjackson Jackson Chung
            cywjackson Jackson Chung
            Jackson Chung
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: