cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Jirsa (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-9148) Issue when modifying UDT
Date Mon, 13 Apr 2015 06:38:14 GMT


Jeff Jirsa updated CASSANDRA-9148:
    Attachment: 9148-2.1.txt

Apologies for [~blerer], didn't notice he was already assigned. Perhaps he can review. 

Adding patch. Should apply to both 2.1 and trunk. Also on github against trunk:

Or against 2.1 (identical):

Includes unit test. 

The assert in db/composites/ is to throw an AssertionError rather than an NPE
if there's another code path that somehow hits this same issue. 

> Issue when modifying UDT
> ------------------------
>                 Key: CASSANDRA-9148
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Oskar Kjellin
>            Assignee: Benjamin Lerer
>             Fix For: 2.1.5
>         Attachments: 9148-2.1.txt
> I'm trying out the user defined types but ran into some issues when adding a column to
an existing type.
> Unfortunately I had to scrap the entire cluster so I cannot access it any more.
> After creating the UDT i adde two tables using it. 1 was just using frozen<type>.
The other was using both frozen<type> frozen map<String, type>.
> Then I realized I needed to add a new field to the user type. Then when I tried to put
to any of the two tables (setting all fields to the UDT in the datastax java driver) I got
this error message that I could not find anywhere else but in the cassandra code:
> com.datastax.driver.core.exceptions.InvalidQueryException: Invalid remaining data after
end of UDT value
> I had to scrap my keyspace in order to be able to use it again. Could not even drop one
of the tables.
> I know that they are frozen so we cannot modify the value of individual fields once they
are written but we must be able to modify the schema right?

This message was sent by Atlassian JIRA

View raw message