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 CE5EC9CC6 for ; Thu, 19 Jan 2012 16:54:02 +0000 (UTC) Received: (qmail 54265 invoked by uid 500); 19 Jan 2012 16:54:02 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 53954 invoked by uid 500); 19 Jan 2012 16:54:01 -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 53927 invoked by uid 99); 19 Jan 2012 16:54:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2012 16:54:01 +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; Thu, 19 Jan 2012 16:54: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 5D47115517A for ; Thu, 19 Jan 2012 16:53:40 +0000 (UTC) Date: Thu, 19 Jan 2012 16:53:40 +0000 (UTC) From: "paul cannon (Updated) (JIRA)" To: commits@cassandra.apache.org Message-ID: <1437445662.56528.1326992020383.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <383059805.29113.1326267641478.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CASSANDRA-3726) cqlsh and cassandra-cli show keys differently for data created via stress tool 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-3726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] paul cannon updated CASSANDRA-3726: ----------------------------------- Attachment: 3726.patch.txt Added a bunch to cqlsh's output formatting so that certain types (in particular, blob) are shown in a more human-readable way. Used colors (when enabled) to help distinguish hex strings from text strings, and to distinguish control characters in text strings. The attached patch contains the changes, or the 3726 branch in my github fork can be used: https://github.com/thepaul/cassandra/commits/3726 > cqlsh and cassandra-cli show keys differently for data created via stress tool > ------------------------------------------------------------------------------ > > Key: CASSANDRA-3726 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3726 > Project: Cassandra > Issue Type: Bug > Reporter: Cathy Daw > Assignee: paul cannon > Priority: Minor > Attachments: 3726.patch.txt > > > {code} > // Run: stress --operation=INSERT --num-keys=5 --columns=2 --consistency-level=QUORUM --column-size=1 --threads=1 --replication-factor=1 --nodes=localhost > // cqlsh > cqlsh:Keyspace1> select * from Standard1; > KEY,3 | C0,c | C1,c | > KEY,0 | > KEY,2 | C0,c | C1,c | > KEY,1 | C0,c | C1,c | > KEY,4 | C0,c | C1,c | > cqlsh:Keyspace1> describe columnfamily Standard1; > CREATE COLUMNFAMILY Standard1 ( > KEY blob PRIMARY KEY > ) WITH > comment='' AND > comparator=ascii AND > row_cache_provider='ConcurrentLinkedHashCacheProvider' AND > key_cache_size=200000.000000 AND > row_cache_size=0.000000 AND > read_repair_chance=1.000000 AND > gc_grace_seconds=864000 AND > default_validation=blob AND > min_compaction_threshold=4 AND > max_compaction_threshold=32 AND > row_cache_save_period_in_seconds=0 AND > key_cache_save_period_in_seconds=14400 AND > replicate_on_write=True; > // cassandra-cli > [default@Keyspace1] list Standard1; > Using default limit of 100 > ------------------- > RowKey: 33 > => (column=C0, value=63, timestamp=1326259960705) > => (column=C1, value=63, timestamp=1326259960705) > ------------------- > RowKey: 30 > ------------------- > RowKey: 32 > => (column=C0, value=63, timestamp=1326259960704) > => (column=C1, value=63, timestamp=1326259960704) > ------------------- > RowKey: 31 > => (column=C0, value=63, timestamp=1326259960704) > => (column=C1, value=63, timestamp=1326259960704) > ------------------- > RowKey: 34 > => (column=C0, value=63, timestamp=1326259960705) > => (column=C1, value=63, timestamp=1326259960705) > [default@Keyspace1] describe Standard1; > ColumnFamily: Standard1 > Key Validation Class: org.apache.cassandra.db.marshal.BytesType > Default column value validator: org.apache.cassandra.db.marshal.BytesType > Columns sorted by: org.apache.cassandra.db.marshal.AsciiType > Row cache size / save period in seconds / keys to save : 0.0/0/all > Row Cache Provider: org.apache.cassandra.cache.ConcurrentLinkedHashCacheProvider > Key cache size / save period in seconds: 200000.0/14400 > GC grace seconds: 864000 > Compaction min/max thresholds: 4/32 > Read repair chance: 1.0 > Replicate on write: true > Built indexes: [] > Compaction Strategy: org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy > {code} -- 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