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

kais edited comment on CASSANDRA-8081 at 10/9/14 8:17 AM:
----------------------------------------------------------

Sorry for my bad explanation, but it is indeed the length of the value that I 
mentioned, I also reproduced this error on 1.2.19 and 2.1.0 version, I know it 
is not a common case but the big worry is that this assertion block the 
flushwriter thread, and no longer flush gets done. Also any other mechanism 
like drain or repair are also blocked.


was (Author: kais):
Sorry for my bad explanation, but it is indeed the length of the value that I 
mentioned, I also reproduced this error on 1.2.19 version 2.1.0, I know it is 
not a common case but the big worry is that this assertion block the 
flushwriter thread, and no longer flush gets done. Also any other mechanism 
like drain or repair are also blocked.

> AssertionError with 2ndary indexes 
> -----------------------------------
>
>                 Key: CASSANDRA-8081
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8081
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: kais
>
> If you create a table with a column type text or blob and add a secondary 
> index on it. If you insert a value greater than 
> FBUtilities.MAX_UNSIGNED_SHORT, then flush, you get an assertion error
> {code}
> CREATE TABLE test_text (key text PRIMARY KEY, col text);
> CREATE INDEX test_text_col_idx ON test_text (col);
> {code}
> {code}
>  INFO [FlushWriter:3] 2014-10-08 10:53:38,471 Memtable.java (line 331) 
> Writing Memtable-test_text.test_text_col_idx@849649959(15/150 serialized/live 
> bytes, 1 ops)
>  INFO [FlushWriter:4] 2014-10-08 10:53:38,554 Memtable.java (line 331) 
> Writing Memtable-test_text@1448092010(100025/1000250 serialized/live bytes, 2 
> ops)
> ERROR [FlushWriter:3] 2014-10-08 10:53:38,554 CassandraDaemon.java (line 196) 
> Exception in thread Thread[FlushWriter:3,5,RMI Runtime]
> java.lang.AssertionError: 100000
>       at 
> org.apache.cassandra.utils.ByteBufferUtil.writeWithShortLength(ByteBufferUtil.java:342)
> {code}



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

Reply via email to