cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuki Morishita (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-5965) IndexSummary load fails when empty key exists in summary
Date Sat, 31 Aug 2013 02:50:51 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-5965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yuki Morishita updated CASSANDRA-5965:
--------------------------------------

    Attachment: 5965-1.2.txt

Patch attached to handle key of length 0.
                
> 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
>         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

Mime
View raw message