You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Edward Capriolo (JIRA)" <ji...@apache.org> on 2011/02/18 23:13:38 UTC

[jira] Created: (CASSANDRA-2199) system_add_keyspace allows replication_factor of 0

system_add_keyspace allows replication_factor of 0
--------------------------------------------------

                 Key: CASSANDRA-2199
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2199
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 0.7.2
            Reporter: Edward Capriolo
            Assignee: Edward Capriolo
            Priority: Minor


If you define a KsDef the replication_factor will default to 0. Cassandra will let you create this keyspace but any write to it will fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CASSANDRA-2199) system_add_keyspace allows replication_factor of 0

Posted by "Edward Capriolo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996639#comment-12996639 ] 

Edward Capriolo commented on CASSANDRA-2199:
--------------------------------------------

1 makes more sense then 0. Then again most use cases will not want 1. (I almost always assume 3). If we apply this patch only it forces the user to actively set the value they want. None of the three settings (name,rf,and strategy) are optional maybe more checking is in order.   

> system_add_keyspace allows replication_factor of 0
> --------------------------------------------------
>
>                 Key: CASSANDRA-2199
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2199
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.7.2
>            Reporter: Edward Capriolo
>            Assignee: Edward Capriolo
>            Priority: Minor
>         Attachments: cassandra-2199-1.patch.txt
>
>
> If you define a KsDef the replication_factor will default to 0. Cassandra will let you create this keyspace but any write to it will fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CASSANDRA-2199) system_add_keyspace allows replication_factor of 0

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018202#comment-13018202 ] 

Jonathan Ellis edited comment on CASSANDRA-2199 at 4/11/11 5:48 AM:
--------------------------------------------------------------------

I believe CASSANDRA-1263 makes strategy_options.replication_factor required (for non-NTS) so if you want 0 you have to explicitly say so.


      was (Author: jbellis):
    I believe CASSANDRA-1236 makes strategy_options.replication_factor required (for non-NTS) so if you want 0 you have to explicitly say so.

  
> system_add_keyspace allows replication_factor of 0
> --------------------------------------------------
>
>                 Key: CASSANDRA-2199
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2199
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.7.2
>            Reporter: Edward Capriolo
>            Priority: Minor
>         Attachments: cassandra-2199-1.patch.txt
>
>
> If you define a KsDef the replication_factor will default to 0. Cassandra will let you create this keyspace but any write to it will fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (CASSANDRA-2199) system_add_keyspace allows replication_factor of 0

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996622#comment-12996622 ] 

Jonathan Ellis commented on CASSANDRA-2199:
-------------------------------------------

should we update KsDef to default rf to 1?

> system_add_keyspace allows replication_factor of 0
> --------------------------------------------------
>
>                 Key: CASSANDRA-2199
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2199
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.7.2
>            Reporter: Edward Capriolo
>            Assignee: Edward Capriolo
>            Priority: Minor
>         Attachments: cassandra-2199-1.patch.txt
>
>
> If you define a KsDef the replication_factor will default to 0. Cassandra will let you create this keyspace but any write to it will fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CASSANDRA-2199) system_add_keyspace allows replication_factor of 0

Posted by "Edward Capriolo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Capriolo updated CASSANDRA-2199:
---------------------------------------

    Attachment: cassandra-2199-1.patch.txt

> system_add_keyspace allows replication_factor of 0
> --------------------------------------------------
>
>                 Key: CASSANDRA-2199
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2199
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.7.2
>            Reporter: Edward Capriolo
>            Assignee: Edward Capriolo
>            Priority: Minor
>         Attachments: cassandra-2199-1.patch.txt
>
>
> If you define a KsDef the replication_factor will default to 0. Cassandra will let you create this keyspace but any write to it will fail.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira