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/06/26 16:42:25 UTC

[jira] [Resolved] (CASSANDRA-5703) IndexSummary and empty keys

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

Jonathan Ellis resolved CASSANDRA-5703.
---------------------------------------

    Resolution: Invalid

Empty row keys are indeed invalid.
                
> IndexSummary and empty keys
> ---------------------------
>
>                 Key: CASSANDRA-5703
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5703
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.2.6
>            Reporter: Fabien Rousseau
>
> We just migrated one of our dev cluster to 1.2.6 and got this Exception for an SSTable after restarting nodes :
> 2013-06-26 11:18:46,316 [SSTableBatchOpen:1] ERROR CassandraDaemon - 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)
> The assertion :
> https://github.com/apache/cassandra/blob/9851b73fc3bbaf61ec80b54c64483bcf56aaa396/src/java/org/apache/cassandra/utils/ByteBufferUtil.java#L401
> should probably be "assert length >= 0;"
> In a broader context, ByteBufferUtil.readBytes(...) could still be used to read 0 bytes without throwing an assertion
> Note : This happens because the SSTable contains an empty rowkey. We're using StorageProxy directly, thus skipping validation, but it appears that other people hit this problem too : http://www.mail-archive.com/user@cassandra.apache.org/msg30123.html
> Also note that data contained in this SSTable is not available because the assertion error is not catched.

--
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