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 4CD08189F2 for ; Wed, 24 Jun 2015 07:15:43 +0000 (UTC) Received: (qmail 65912 invoked by uid 500); 24 Jun 2015 07:15:43 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 65875 invoked by uid 500); 24 Jun 2015 07:15:43 -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 65864 invoked by uid 99); 24 Jun 2015 07:15:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2015 07:15:42 +0000 Date: Wed, 24 Jun 2015 07:15:42 +0000 (UTC) From: "Benjamin Lerer (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-9064) [LeveledCompactionStrategy] cqlsh can't run cql produced by its own describe table statement 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-9064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14598987#comment-14598987 ] Benjamin Lerer commented on CASSANDRA-9064: ------------------------------------------- [~aholmber] I assigned the ticket to you as you will know exactly when the python driver fix is ready to be used by Cassandra. > [LeveledCompactionStrategy] cqlsh can't run cql produced by its own describe table statement > -------------------------------------------------------------------------------------------- > > Key: CASSANDRA-9064 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9064 > Project: Cassandra > Issue Type: Bug > Components: Core > Environment: cassandra 2.1.3 on mac os x > Reporter: Sujeet Gholap > Assignee: Adam Holmberg > Labels: cqlsh > Fix For: 2.1.x > > > Here's how to reproduce: > 1) Create a table with LeveledCompactionStrategy > CREATE keyspace foo WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor' : 3}; > CREATE TABLE foo.bar ( > spam text PRIMARY KEY > ) WITH compaction = {'class': 'LeveledCompactionStrategy'}; > 2) Describe the table and save the output > cqlsh -e "describe table foo.bar" > Output should be something like > CREATE TABLE foo.bar ( > spam text PRIMARY KEY > ) WITH bloom_filter_fp_chance = 0.1 > AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}' > AND comment = '' > AND compaction = {'min_threshold': '4', 'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy', 'max_threshold': '32'} > AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'} > AND dclocal_read_repair_chance = 0.1 > AND default_time_to_live = 0 > AND gc_grace_seconds = 864000 > AND max_index_interval = 2048 > AND memtable_flush_period_in_ms = 0 > AND min_index_interval = 128 > AND read_repair_chance = 0.0 > AND speculative_retry = '99.0PERCENTILE'; > 3) Save the output to repro.cql > 4) Drop the table foo.bar > cqlsh -e "drop table foo.bar" > 5) Run the create table statement we saved > cqlsh -f "repro.cql" > 6) Expected: normal execution without an error > 7) Reality: > ConfigurationException: -- This message was sent by Atlassian JIRA (v6.3.4#6332)