cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-5866) compaction_strategy_class ignored during table creation in 1.2.8
Date Fri, 09 Aug 2013 15:31:49 GMT

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

Aleksey Yeschenko commented on CASSANDRA-5866:
----------------------------------------------

bq. Should we not give an error if the syntax is not supported in 3 though?

You'll get "WARN: Ignoring obsolete property compaction_strategy_class" in your log. At this
point, though, we should probably outright reject the query.
                
> compaction_strategy_class ignored during table creation in 1.2.8
> ----------------------------------------------------------------
>
>                 Key: CASSANDRA-5866
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5866
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: Centos
>            Reporter: Adam Hattrell
>            Assignee: Aleksey Yeschenko
>            Priority: Minor
>             Fix For: 1.2.9
>
>         Attachments: 5866-1.2.txt
>
>
> Creating a table with LeveledCompactionStrategy in 1.2.8 seems to ignore it's compaction_strategy_class.
> CREATE KEYSPACE activities WITH strategy_class = 'SimpleStrategy'
>  AND strategy_options:replication_factor = '1';
>  USE activities;
>  CREATE TABLE activity (
>  KEY blob PRIMARY KEY
>  ) 
> WITH compaction_strategy_class='LeveledCompactionStrategy';
> echo 'DESCRIBE KEYSPACE activities;' | cqlsh
> Shows:
> compaction_strategy_class='SizeTieredCompactionStrategy'
> If you update it with 
> ALTER TABLE activity with compaction_strategy_class='LeveledCompactionStrategy' ;
> Then the describe will now return correct results.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message