cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7744) Dropping the last collection column turns CompoundSparseCellNameType$WithCollection into CompoundDenseCellNameType
Date Tue, 12 Aug 2014 19:49:11 GMT

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

Aleksey Yeschenko commented on CASSANDRA-7744:
----------------------------------------------

Haven't dug into it, but the patch breaks CliTest, in a legit way:

{code}
 [junit] Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
 [junit] 	at java.util.ArrayList.rangeCheck(ArrayList.java:635)
 [junit] 	at java.util.ArrayList.set(ArrayList.java:426)
 [junit] 	at org.apache.cassandra.config.CFMetaData.rebuildCQL3Metadata(CFMetaData.java:1981)
 [junit] 	at org.apache.cassandra.config.CFMetaData.rebuild(CFMetaData.java:1947)
 [junit] 	at org.apache.cassandra.config.CFMetaData.apply(CFMetaData.java:1117)
 [junit] 	at org.apache.cassandra.config.CFMetaData.reload(CFMetaData.java:1046)
 [junit] 	at org.apache.cassandra.db.DefsTables.updateColumnFamily(DefsTables.java:377)
 [junit] 	at org.apache.cassandra.db.DefsTables.mergeColumnFamilies(DefsTables.java:318)
 [junit] 	at org.apache.cassandra.db.DefsTables.mergeSchema(DefsTables.java:183)
{code}

> Dropping the last collection column turns CompoundSparseCellNameType$WithCollection into
CompoundDenseCellNameType
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-7744
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7744
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Aleksey Yeschenko
>            Assignee: Sylvain Lebresne
>             Fix For: 2.0.10, 2.1.0
>
>         Attachments: 7744.txt
>
>
> Dropping the last collection column turns CompoundSparseCellNameType$WithCollection into
CompoundDenseCellNameType
> To reproduce
> {code}
> cqlsh:test> create table test (id int primary key, col map<int,int>);
> cqlsh:test> alter table test drop col;
> cqlsh:test> alter table test add col list<int>;
> code=2200 [Invalid query] message="Cannot add new column to a COMPACT STORAGE table"
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message