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] [Updated] (CASSANDRA-2835) CFMetadata don't set the default for Replicate_on_write correctly
Date Tue, 28 Jun 2011 12:48:17 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-2835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sylvain Lebresne updated CASSANDRA-2835:
----------------------------------------

    Attachment: 2835.patch

> 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