Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0C74610322 for ; Fri, 9 Aug 2013 15:31:52 +0000 (UTC) Received: (qmail 47803 invoked by uid 500); 9 Aug 2013 15:31:51 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 47659 invoked by uid 500); 9 Aug 2013 15:31:51 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 47269 invoked by uid 99); 9 Aug 2013 15:31:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Aug 2013 15:31:50 +0000 Date: Fri, 9 Aug 2013 15:31:49 +0000 (UTC) From: "Aleksey Yeschenko (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-5866) compaction_strategy_class ignored during table creation in 1.2.8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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