Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-12499

Row cache does not cache partitions on tables without clustering keys

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 3.0.10, 3.10
    • None
    • Normal

    Description

      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$
      

      Attachments

        Activity

          People

            jjirsa Jeff Jirsa
            jjirsa Jeff Jirsa
            Jeff Jirsa
            Sylvain Lebresne
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: