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 5EF819DD4 for ; Tue, 10 Jan 2012 01:00:04 +0000 (UTC) Received: (qmail 20992 invoked by uid 500); 10 Jan 2012 01:00:04 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 20914 invoked by uid 500); 10 Jan 2012 01:00:03 -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 20906 invoked by uid 99); 10 Jan 2012 01:00:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 01:00:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 01:00:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 826D81403DB for ; Tue, 10 Jan 2012 00:59:39 +0000 (UTC) Date: Tue, 10 Jan 2012 00:59:39 +0000 (UTC) From: "Joaquin Casares (Updated) (JIRA)" To: commits@cassandra.apache.org Message-ID: <1905975686.23867.1326157179535.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <143385397.23662.1326152679291.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CASSANDRA-3714) Show Schema; inserts an extra comma in column_metadata MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-3714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joaquin Casares updated CASSANDRA-3714: --------------------------------------- Fix Version/s: (was: 0.8.10) > Show Schema; inserts an extra comma in column_metadata > ------------------------------------------------------ > > Key: CASSANDRA-3714 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3714 > Project: Cassandra > Issue Type: Bug > Reporter: Joaquin Casares > Assignee: Yuki Morishita > Priority: Trivial > Fix For: 1.0.7 > > Attachments: CASSANDRA-1.0-3714.txt > > > create column family inode > with column_type = 'Standard' > and comparator = 'DynamicCompositeType(t=>org.apache.cassandra.db.marshal.TimeUUIDType,s=>org.apache.cassandra.db.marshal.UTF8Type,b=>org.apache.cassandra.db.marshal.BytesType)' > and default_validation_class = 'BytesType' > and key_validation_class = 'BytesType' > and rows_cached = 0.0 > and row_cache_save_period = 0 > and row_cache_keys_to_save = 2147483647 > and keys_cached = 1000000.0 > and key_cache_save_period = 14400 > and read_repair_chance = 1.0 > and gc_grace = 60 > and min_compaction_threshold = 4 > and max_compaction_threshold = 32 > and replicate_on_write = true > and row_cache_provider = 'ConcurrentLinkedHashCacheProvider' > and compaction_strategy = 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy' > and comment = 'Stores file meta data' > and column_metadata = [ > {column_name : 'b@70617468', > validation_class : BytesType, > index_name : 'path', > index_type : 0, > }, > {column_name : 'b@73656e74696e656c', > validation_class : BytesType, > index_name : 'sentinel', > index_type : 0, > }, > {column_name : 'b@706172656e745f70617468', > validation_class : BytesType, > index_name : 'parent_path', > index_type : 0, > }]; > That's that was outputted when I ran show schema. When I tried it on a new cluster, it failed since the commas after 'index_type: 0' were present. > Proposed fixes: > 1. Allow trailing commas > 2. Do not output trailing commas -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira