[
https://issues.apache.org/jira/browse/CASSANDRA-7291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14006972#comment-14006972
]
Sylvain Lebresne commented on CASSANDRA-7291:
---------------------------------------------
This is my bad for forgetting the isCompatibleWith/isValueCompatibleWith in
CASSANDRA-7209's patch. I realized that while writing CASSANDRA-7248 but forgot
to carry the fix over. Anyway, since TupleType has been committed with
CASSANDRA-6875, the simpler fix is just to go with the first patch from
CASSANDRA-7248 (which makes UserType extends UserType to avoid code
duplication, and add the aforementioned methods in the process). Attaching that
first patch here, we can either commit this here or make this issue duplicate
of CASSANDRA-7248, I don't really care either way.
> java.lang.AssertionError when adding a collection to a UDT
> ----------------------------------------------------------
>
> Key: CASSANDRA-7291
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7291
> Project: Cassandra
> Issue Type: Bug
> Reporter: Mikhail Stepura
> Assignee: Sylvain Lebresne
> Fix For: 2.1 rc1
>
> Attachments: 0001-Make-UserType-extend-TupleType.txt
>
>
> Here are steps to reproduce on 2.1 branch
> {code}
> create keyspace test WITH replication = {'class': 'SimpleStrategy',
> 'replication_factor': 1} ;
> use test;
> create TYPE footype (fooint int, fooset set <text>);
> create table test (key int PRIMARY KEY , data footype );
> insert INTO test (key, data ) VALUES ( 1, {fooint: 1, fooset: {'2'}});
> alter TYPE footype ADD foomap map <int,text>;
> <ErrorMessage code=0000 [Server error] message="java.lang.RuntimeException:
> java.util.concurrent.ExecutionException: java.lang.AssertionError"
> {code}
> And here is the exception in the log:
> https://gist.github.com/Mishail/329aad303929bb11c953
--
This message was sent by Atlassian JIRA
(v6.2#6252)