You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jeff Jirsa (JIRA)" <ji...@apache.org> on 2016/08/19 05:50:20 UTC

[jira] [Created] (CASSANDRA-12499) Row cache does not cache partitions on tables without clustering keys

Jeff Jirsa created CASSANDRA-12499:
--------------------------------------

             Summary: Row cache does not cache partitions on tables without clustering keys
                 Key: CASSANDRA-12499
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12499
             Project: Cassandra
          Issue Type: Bug
            Reporter: Jeff Jirsa
            Assignee: Jeff Jirsa


{code}
MLSEA-JJIRSA01:~ jjirsa$ ccm start
MLSEA-JJIRSA01:~ jjirsa$ echo "DESCRIBE TABLE test.test; " | ccm node1 cqlsh

CREATE TABLE test.test (
    id int PRIMARY KEY,
    v text
) WITH bloom_filter_fp_chance = 0.01
    AND caching = {'keys': 'ALL', 'rows_per_partition': '100'}
    AND comment = ''
    AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
    AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
    AND crc_check_chance = 1.0
    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 = '99PERCENTILE';

MLSEA-JJIRSA01:~ jjirsa$ ccm node1 nodetool info | grep Row
Row Cache              : entries 0, size 0 bytes, capacity 100 MiB, 0 hits, 0 requests, NaN recent hit rate, 0 save period in seconds
MLSEA-JJIRSA01:~ jjirsa$ echo "INSERT INTO test.test(id,v) VALUES(1, 'a'); " | ccm node1 cqlsh
MLSEA-JJIRSA01:~ jjirsa$ echo "SELECT * FROM test.test WHERE id=1; " | ccm node1 cqlsh

 id | v
----+---
  1 | a

(1 rows)
MLSEA-JJIRSA01:~ jjirsa$ ccm node1 nodetool info | grep Row
Row Cache              : entries 0, size 0 bytes, capacity 100 MiB, 0 hits, 0 requests, NaN recent hit rate, 0 save period in seconds
MLSEA-JJIRSA01:~ jjirsa$ echo "SELECT * FROM test.test WHERE id=1; " | ccm node1 cqlsh

 id | v
----+---
  1 | a

(1 rows)
MLSEA-JJIRSA01:~ jjirsa$ ccm node1 nodetool info | grep Row
Row Cache              : entries 0, size 0 bytes, capacity 100 MiB, 0 hits, 0 requests, NaN recent hit rate, 0 save period in seconds
MLSEA-JJIRSA01:~ jjirsa$
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)