cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Dusbabek (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-1764) NPE on system_update_cf when adding an index to a column without existing metadata
Date Tue, 23 Nov 2010 17:04:26 GMT

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

Gary Dusbabek commented on CASSANDRA-1764:
------------------------------------------

+1.  test passes after applying the fix for CASSANDRA-1768.

> NPE on system_update_cf when adding an index to a column without existing metadata
> ----------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1764
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1764
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0 rc 1
>         Environment: Cassandra 0.7 branch
>            Reporter: Tyler Hobbs
>            Assignee: Gary Dusbabek
>             Fix For: 0.7.0
>
>         Attachments: 1764-test.txt
>
>
> When trying to create a secondary index using system_update_column_family(), if you try
to add an index on a column that does not already have an existing entry in the CfDef's column_metadata,
a NullPointerException is thrown.
> Looks like the logic in o.a.c.config.CFMetaData.apply() is faulty.  Specifically, creating
a toUpdate Set (similar to the toAdd and toDelete) sets and using that for the loop ~ line
663 would fix this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message