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 beta 3
         Environment: Cassandra 0.7 branch
            Reporter: Tyler Hobbs


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.

Reply via email to