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

IndexSummary load fails when empty key exists in summary

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.2.10
    • None
    • None
    • Normal

    Description

      IndexSummary load fails with the following error when empty key is added to summary:

      ERROR [SSTableBatchOpen:1] 2013-08-30 20:17:41,210 CassandraDaemon.java (line 192) Exception in thread Thread[SSTableBatchOpen:1,5,main]
      java.lang.AssertionError
              at org.apache.cassandra.utils.ByteBufferUtil.readBytes(ByteBufferUtil.java:401)
              at org.apache.cassandra.io.sstable.IndexSummary$IndexSummarySerializer.deserialize(IndexSummary.java:124)
              at org.apache.cassandra.io.sstable.SSTableReader.loadSummary(SSTableReader.java:491)
              at org.apache.cassandra.io.sstable.SSTableReader.load(SSTableReader.java:388)
              at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:198)
              at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:157)
              at org.apache.cassandra.io.sstable.SSTableReader$1.run(SSTableReader.java:262)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
              at java.util.concurrent.FutureTask.run(FutureTask.java:166)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:724)
      

      I think this is typically caused by indexing empty column, and then the key in index columnfamily is added to its IndexSummary.

      Attachments

        1. 5965-1.2.txt
          0.7 kB
          Yuki Morishita
        2. 0001-Add-IndexSummary-test.patch
          3 kB
          Yuki Morishita

        Activity

          People

            yukim Yuki Morishita
            yukim Yuki Morishita
            Yuki Morishita
            Jonathan Ellis
            Daniel Meyer Daniel Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: