You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Cathy Daw (Created) (JIRA)" <ji...@apache.org> on 2012/01/11 08:40:41 UTC

[jira] [Created] (CASSANDRA-3726) cqlsh and cassandra-cli show keys differently for data created via stress tool

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
            Priority: Minor


{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

        

[jira] [Commented] (CASSANDRA-3726) cqlsh and cassandra-cli show keys differently for data created via stress tool

Posted by "paul cannon (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13189947#comment-13189947 ] 

paul cannon commented on CASSANDRA-3726:
----------------------------------------

sys.stdout can change, yeah, and that might happen depending on how we decide to implement output capture vis à vis CASSANDRA-3479. Note that's different from just dup2-ing another stream onto fd 0.

bq. 1e6defcaba90b7313d87c2626cbb6ae418b40567 still doesn't apply cleanly to 1.0 for me.

Are you sure? Its only parent is fc6103966cbe90c96e75f4b52c10376b9df468d7, which is currently the head of cassandra-1.0 on the git-wip-us.apache.org repo.
                
> 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.2.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

       

[jira] [Commented] (CASSANDRA-3726) cqlsh and cassandra-cli show keys differently for data created via stress tool

Posted by "Jonathan Ellis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13189938#comment-13189938 ] 

Jonathan Ellis commented on CASSANDRA-3726:
-------------------------------------------

... the new squashed patch applies fine to 1.0 though, so no need to rebase again.
                
> 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.2.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

        

[jira] [Updated] (CASSANDRA-3726) cqlsh and cassandra-cli show keys differently for data created via stress tool

Posted by "paul cannon (Updated) (JIRA)" <ji...@apache.org>.
     [ 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.2.txt

So rebased, on top of cassandra-1.0 instead of trunk since that's where you seem to be putting it. New branch on my github is "rebased/3726/1", or new patch attached.

https://github.com/thepaul/cassandra/commits/rebased/3726/1
                
> 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.2.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

        

[jira] [Commented] (CASSANDRA-3726) cqlsh and cassandra-cli show keys differently for data created via stress tool

Posted by "Jonathan Ellis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13189512#comment-13189512 ] 

Jonathan Ellis commented on CASSANDRA-3726:
-------------------------------------------

Can you rebase on top of 1.0?  I think 3586/3587 conflict.
                
> 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

        

[jira] [Updated] (CASSANDRA-3726) cqlsh and cassandra-cli show keys differently for data created via stress tool

Posted by "paul cannon (Updated) (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] [Commented] (CASSANDRA-3726) cqlsh and cassandra-cli show keys differently for data created via stress tool

Posted by "Jonathan Ellis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13189937#comment-13189937 ] 

Jonathan Ellis commented on CASSANDRA-3726:
-------------------------------------------

1e6defcaba90b7313d87c2626cbb6ae418b40567 still doesn't apply cleanly to 1.0 for me.

Incidentally, why is switching "out=sys.stdout" to "out=None" and then special casing none in the method body an improvement?  Are you expecting stdout to change?
                
> 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.2.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

        

[jira] [Assigned] (CASSANDRA-3726) cqlsh and cassandra-cli show keys differently for data created via stress tool

Posted by "paul cannon (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

paul cannon reassigned CASSANDRA-3726:
--------------------------------------

    Assignee: paul cannon
    
> 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
>
> {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

        

[jira] [Updated] (CASSANDRA-3726) cqlsh and cassandra-cli show keys differently for data created via stress tool

Posted by "paul cannon (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

paul cannon updated CASSANDRA-3726:
-----------------------------------

    Attachment:     (was: 3726.patch.txt)
    
> 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.2.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