You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Tyler Hobbs (JIRA)" <ji...@apache.org> on 2010/11/22 02:35:14 UTC
[jira] Created: (CASSANDRA-1764) NPE on system_update_cf when
adding an index to a column without existing metadata
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.
[jira] Commented: (CASSANDRA-1764) NPE on system_update_cf when
adding an index to a column without existing metadata
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (CASSANDRA-1764) NPE on system_update_cf when
adding an index to a column without existing metadata
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-1764:
--------------------------------------
Affects Version/s: (was: 0.7 beta 3)
0.7.0 rc 1
> 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.
[jira] Resolved: (CASSANDRA-1764) NPE on system_update_cf when
adding an index to a column without existing metadata
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis resolved CASSANDRA-1764.
---------------------------------------
Resolution: Duplicate
> 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.
[jira] Updated: (CASSANDRA-1764) NPE on system_update_cf when
adding an index to a column without existing metadata
Posted by "Tyler Hobbs (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tyler Hobbs updated CASSANDRA-1764:
-----------------------------------
Attachment: 1764-test-v2.txt
> 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-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.
[jira] Resolved: (CASSANDRA-1764) NPE on system_update_cf when
adding an index to a column without existing metadata
Posted by "Gary Dusbabek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Dusbabek resolved CASSANDRA-1764.
--------------------------------------
Resolution: Fixed
committed.
> 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-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.
[jira] Reopened: (CASSANDRA-1764) NPE on system_update_cf when
adding an index to a column without existing metadata
Posted by "Gary Dusbabek (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (CASSANDRA-1764) NPE on system_update_cf when
adding an index to a column without existing metadata
Posted by "Tyler Hobbs (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tyler Hobbs updated CASSANDRA-1764:
-----------------------------------
Attachment: 1764-test.txt
> 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
> 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.
[jira] Updated: (CASSANDRA-1764) NPE on system_update_cf when
adding an index to a column without existing metadata
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-1764:
--------------------------------------
Fix Version/s: 0.7.0
Assignee: Gary Dusbabek
> 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
> 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.
[jira] Commented: (CASSANDRA-1764) NPE on system_update_cf when
adding an index to a column without existing metadata
Posted by "Gary Dusbabek (JIRA)" <ji...@apache.org>.
[ 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.