[ https://issues.apache.org/jira/browse/CASSANDRA-1764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970417#action_12970417 ]
Hudson commented on CASSANDRA-1764: ----------------------------------- Integrated in Cassandra-0.7 #70 (See [https://hudson.apache.org/hudson/job/Cassandra-0.7/70/]) > 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 rc 2 > > Attachments: 1764-test-v2.txt, 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.