You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2013/08/31 05:02:51 UTC

[jira] [Commented] (CASSANDRA-5965) IndexSummary load fails when empty key exists in summary

    [ https://issues.apache.org/jira/browse/CASSANDRA-5965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13755384#comment-13755384 ] 

Jonathan Ellis commented on CASSANDRA-5965:
-------------------------------------------

+1

Also suggest adding a {{: length}} to the assert, which will make diagnosing such oversights easier in the future.
                
> IndexSummary load fails when empty key exists in summary
> --------------------------------------------------------
>
>                 Key: CASSANDRA-5965
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5965
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Yuki Morishita
>            Assignee: Yuki Morishita
>             Fix For: 1.2.10
>
>         Attachments: 0001-Add-IndexSummary-test.patch, 5965-1.2.txt
>
>
> IndexSummary load fails with the following error when empty key is added to summary:
> {code}
> 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)
> {code}
> I think this is typically caused by indexing empty column, and then the key in index columnfamily is added to its IndexSummary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira