You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Fabien Rousseau (JIRA)" <ji...@apache.org> on 2015/05/28 00:57:18 UTC

[jira] [Commented] (CASSANDRA-9071) CQLSSTableWriter gives java.lang.AssertionError: Empty partition

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

Fabien Rousseau commented on CASSANDRA-9071:
--------------------------------------------

Hum, it's because the check for "Empty partition" is invalid...
With the current code, it's possible for the first inserted row/partition to be empty (due to https://github.com/apache/cassandra/blob/cassandra-2.1/src/java/org/apache/cassandra/io/sstable/SSTableSimpleUnsortedWriter.java#L177 )
That's why the check allows for the first row/partition to be empty (https://github.com/apache/cassandra/blob/cassandra-2.1/src/java/org/apache/cassandra/io/sstable/SSTableSimpleUnsortedWriter.java#L233)

BUT the buffer is a TreeMap which reorders keys (thus the first inserted key is not necessarily in the first position/the first returned by the iterator).



> CQLSSTableWriter gives java.lang.AssertionError: Empty partition
> ----------------------------------------------------------------
>
>                 Key: CASSANDRA-9071
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9071
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>         Environment: java 7 / 8
> cassandra 2.1.3 snapshot build locally with last commit https://github.com/apache/cassandra/commit/6ee4b0989d9a3ae3e704918622024fa57fdf63e7
> macos Yosemite 10.10.2
>            Reporter: Ajit Joglekar
>            Assignee: Benedict
>             Fix For: 2.1.x
>
>         Attachments: EmailWriter.java, Screen Shot 2015-04-15 at 11.14.40 PM.png, data.csv.gz
>
>
> I am always getting the following error:
> Exception in thread "main" java.lang.AssertionError: Empty partition
> at org.apache.cassandra.io.sstable.SSTableSimpleUnsortedWriter$DiskWriter.run(SSTableSimpleUnsortedWriter.java:228)
> It happens at a certain point that seems to be repeatable. Only issue is I am converting 400 million records into multiple SSTables and creating small test is a challenge
> Last comment from Benedict looks relevant here https://issues.apache.org/jira/browse/CASSANDRA-8619
> Is there a work around, quick fix, fix that I can try out locally?
> Thanks,
> -Ajit



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)