You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Gary Dusbabek (JIRA)" <ji...@apache.org> on 2010/11/23 18:14:14 UTC
[jira] Reopened: (CASSANDRA-1764) NPE on system_update_cf when
adding an index to a column without existing metadata
[ https://issues.apache.org/jira/browse/CASSANDRA-1764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Dusbabek reopened CASSANDRA-1764:
--------------------------------------
reopening to track committing the test.
> 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.