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-1082) Additional test to check if a CF can be added to an empty KS after creation
Date Wed, 12 May 2010 19:06:42 GMT

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

Gary Dusbabek commented on CASSANDRA-1082:
------------------------------------------

> assert DatabaseDescriptor.getTableDefinition(newCf.tableName) == null;
This assert fails because the keyspace was setup during AddKeyspace.apply().

It might be better to assert the KS doesn't exist prior to creating it and then assert that
it does exist after creating it.

Everything else looks great.

> Additional test to check if a CF can be added to an empty KS after creation
> ---------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1082
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1082
>             Project: Cassandra
>          Issue Type: Test
>          Components: Core
>    Affects Versions: 0.7
>            Reporter: Erik Onnen
>            Priority: Minor
>         Attachments: DefsTest.java.patch
>
>
> Thought I had encountered a bug here but was wrong. Wrote the test anyway, patch attached.

-- 
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