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

2015-10-29 Thread Xu Zhongxing (JIRA)

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

Xu Zhongxing commented on CASSANDRA-9071:
-

Could you please back port this fix to 2.0 branch? We use CQLsstablewriter 
heavily.

> 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: Fabien Rousseau
> Fix For: 2.1.6
>
> Attachments: EmailWriter.java, Screen Shot 2015-04-15 at 11.14.40 
> PM.png, cassandra-2.1-9071.txt, 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)


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

2015-08-31 Thread Dana Powers (JIRA)

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

Dana Powers commented on CASSANDRA-9071:


Are there any plans to backport this patch to the 2.0 branch ?

> 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: Fabien Rousseau
> Fix For: 2.1.6
>
> Attachments: EmailWriter.java, Screen Shot 2015-04-15 at 11.14.40 
> PM.png, cassandra-2.1-9071.txt, 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)


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

2015-08-31 Thread Jonathan Ellis (JIRA)

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

Jonathan Ellis commented on CASSANDRA-9071:
---

No.

> 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: Fabien Rousseau
> Fix For: 2.1.6
>
> Attachments: EmailWriter.java, Screen Shot 2015-04-15 at 11.14.40 
> PM.png, cassandra-2.1-9071.txt, 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)


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

2015-06-03 Thread David Artiga (JIRA)

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

David Artiga commented on CASSANDRA-9071:
-

Nice to see this fixed. Thank you!

 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: Fabien Rousseau
 Fix For: 2.1.6

 Attachments: EmailWriter.java, Screen Shot 2015-04-15 at 11.14.40 
 PM.png, cassandra-2.1-9071.txt, 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)


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

2015-06-03 Thread Fabien Rousseau (JIRA)

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

Fabien Rousseau commented on CASSANDRA-9071:


Great. Thanks !

 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: Fabien Rousseau
 Fix For: 2.1.6

 Attachments: EmailWriter.java, Screen Shot 2015-04-15 at 11.14.40 
 PM.png, cassandra-2.1-9071.txt, 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)


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

2015-06-03 Thread Fabien Rousseau (JIRA)

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

Fabien Rousseau commented on CASSANDRA-9071:


Benedict, thanks for your patch.

I also provided a patch a few days ago (see attached file 
cassandra-2.1-9071.txt, maybe I should have added a comment to make it more 
explicit :) )

This is a similar approach, but mine only keep the DecoratedKey (there is no 
need to keep the whole previous CF, and can consume more memory if the CF has 
many columns)

Concerning the unit test, it needs to at least write first a full buffer then 
write the second one (the first buffer never has an empty partition). Moreover, 
to increase chances of triggering this false assertion, it’s better to have the 
decorated key bigger than the value (and only have one column per CF). (This 
increases the fact that, when “sync” is called, no more columns are written in 
the empty CF)
Don’t hesitate to have a look at the unit test I submitted in the patch (I 
tested it without (test failed) and with my patch (test passed) )



 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: Fabien Rousseau
 Fix For: 2.1.x

 Attachments: EmailWriter.java, Screen Shot 2015-04-15 at 11.14.40 
 PM.png, cassandra-2.1-9071.txt, 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)


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

2015-06-03 Thread Benedict (JIRA)

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

Benedict commented on CASSANDRA-9071:
-

bq. there is no need to keep the whole previous CF, and can consume more memory 
if the CF has many columns

This wouldn't be a problem, since the CF is retained anyway. The more piercing 
criticism of my patch is that I addressed the opposite end of the situation 
(even missing the obvious intent from the prior naming of the variables). In 
fact while it looked to me like the last record written to could be empty, we 
only ever flush after at least one cell is present, so that isn't a risk.

Thanks for pointing out your patch. I've pushed it to my github repository to 
await continuous integration results.

 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: Fabien Rousseau
 Fix For: 2.1.x

 Attachments: EmailWriter.java, Screen Shot 2015-04-15 at 11.14.40 
 PM.png, cassandra-2.1-9071.txt, 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)


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

2015-06-02 Thread Benedict (JIRA)

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

Benedict commented on CASSANDRA-9071:
-

Heh. Thanks for pointing that out!

I've pushed a fix and unit test 
[here|https://github.com/belliottsmith/cassandra/tree/9051]

 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: Fabien Rousseau
 Fix For: 2.1.x

 Attachments: EmailWriter.java, Screen Shot 2015-04-15 at 11.14.40 
 PM.png, cassandra-2.1-9071.txt, 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)


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

2015-05-27 Thread Fabien Rousseau (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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)


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

2015-04-15 Thread Cain (JIRA)

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

Cain commented on CASSANDRA-9071:
-

I hava the same problem with cassandra 2.1.4. When I was loading large dataset 
into C* with SSTableSimpleUnsortedWriter,
I got an  *java.lang.AssertionError: Empty partition*

{code:title=test.java|borderStyle=solid}

System.setProperty(cassandra.config,file:///Users/zn/workspace/sstable-csv-m/conf/cassandra.yaml);
String keyspace = app;
File directory = new File(app/sstables/);
if (!directory.exists()){
directory.mkdir();
}
Murmur3Partitioner partitioner = new Murmur3Partitioner();
SSTableSimpleUnsortedWriter usersWriter = new 
SSTableSimpleUnsortedWriter(

directory,partitioner,keyspace,Users,AsciiType.instance,null,32);

long timestamp = System.currentTimeMillis() * 1000;
StringBuilder s = new StringBuilder(test);
for (int x=0;x6;x++){

s.append(aa);
}
String x = s.toString();
for(int i=0; i 100; i++)
{
ByteBuffer uuid = ByteBuffer.wrap(decompose(UUID.randomUUID()));
usersWriter.newRow(uuid);
usersWriter.addColumn(bytes(id), bytes(i), timestamp);
usersWriter.addColumn(bytes(lastname), bytes(x), timestamp);
if ((i % 1000) == 0){
System.out.println((i/1000) +   + K records wrote);
}
}
usersWriter.close();
System.exit(0);
{code}

After some debuging work, I found, the buffer which was pushed in *writeQueue* 
had some empty *ColumnFamily*, which casued the exception.
!https://issues.apache.org/jira/secure/attachment/12725602/Screen+Shot+2015-04-15+at+11.14.40+PM.png!


I am new to cassandra and java, so how to quick fix this bug?


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

 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)


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

2015-04-08 Thread Ajit Joglekar (JIRA)

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

Ajit Joglekar commented on CASSANDRA-9071:
--

I tried again with a new snapshot build taken from commit 
2057a34cbbc167be4b0a545399c8c56cf0e4717f
Not able to reproduce it now. I will try once more with the old snapshot build 
just to confirm

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

 Attachments: EmailWriter.java, 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)


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

2015-04-08 Thread David Artiga (JIRA)

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

David Artiga commented on CASSANDRA-9071:
-

Same here.

I was able to reproduce with a small testing data set (~20.000 rows) and 
setting the minimum buffer size (1Mb).

Find attached files.

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

 Attachments: EmailWriter.java, 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)


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

2015-04-03 Thread Benedict (JIRA)

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

Benedict commented on CASSANDRA-9071:
-

Looking at the code, it appears that the bug that could be introduced there has 
been fixed. I suspect you may simply be providing zero mutations for a 
partition Can you post the code you're using to interact with it?

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


 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)