cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-2835) CFMetadata don't set the default for Replicate_on_write correctly
Date Tue, 28 Jun 2011 13:16:17 GMT

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

Sylvain Lebresne commented on CASSANDRA-2835:
---------------------------------------------

Committed, thanks (I've included a not in the NEWS file as well as updated the wiki).

> CFMetadata don't set the default for Replicate_on_write correctly 
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-2835
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2835
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.8.0
>            Reporter: Sylvain Lebresne
>            Assignee: Sylvain Lebresne
>              Labels: counters
>             Fix For: 0.8.2
>
>         Attachments: 2835.patch
>
>
> Replicate_on_write *must* default to true (defaulting to false is very dangerous and
imho, the option of setting it to false shouldn't exist in the first place) and CFMetadata.DEFAULT_REPLICATE_ON_WRITE
is correctly true. But it doesn't get set correctly. Instead, the code force the value of
the cf_def even if it wasn't defined, resulting in setting it to false since that is the default
value for a boolean in JAVA.

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

        

Mime
View raw message