You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "sankalp kohli (JIRA)" <ji...@apache.org> on 2014/02/25 03:00:24 UTC

[jira] [Commented] (CASSANDRA-6761) A positive value of row_cache_save_period is needed to enable row cache

    [ https://issues.apache.org/jira/browse/CASSANDRA-6761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13911111#comment-13911111 ] 

sankalp kohli commented on CASSANDRA-6761:
------------------------------------------

I cannot reproduce it in 1.2.13. Here are the steps I followed.
1) Download 1.2.13 from http://archive.apache.org/dist/cassandra/1.2.13/
2) Change cassandra.yaml and enable row cache. 
row_cache_size_in_mb: 10
3) Start Cassandra. 
4) Issue node tool info
Token            : 3715434916171109180
ID               : a8add381-8544-438b-b7a5-0fa917f4844b
Gossip active    : true
Thrift active    : true
Native Transport active: true
Load             : 14.02 KB
Generation No    : 1393293410
Uptime (seconds) : 13
Heap Memory (MB) : 63.99 / 4016.00
Data Center      : datacenter1
Rack             : rack1
Exceptions       : 0
Key Cache        : size 216 (bytes), capacity 104857600 (bytes), 7 hits, 10 requests, 0.700 recent hit rate, 14400 save period in seconds
Row Cache        : size 0 (bytes), capacity 10485760 (bytes), 0 hits, 0 requests, NaN recent hit rate, 0 save period in seconds

> A positive value of row_cache_save_period is needed to enable row cache
> -----------------------------------------------------------------------
>
>                 Key: CASSANDRA-6761
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6761
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Robert Supencheck
>            Priority: Minor
>
> When the setting for row_cache_save_period is 0, the value specified for row_cache_size_in_mb is not utilized.
> The cassandra version with which this behavior has been observed is:
> adminuser@Ubuntu1:~$ nodetool version
> ReleaseVersion: 1.2.13.2
> To replicate
> 1) Stop dse;
> 2) Edit the cassandra.yaml file, setting the value of the row_cache_size_in_mb to be a nonzero value;
> 3) Start dse;
> 4) Run the 'nodetool info' command and observe the following line in the output:
> Row Cache : size 0 (bytes), capacity 0 (bytes), 0 hits, 0 requests, NaN recent hit rate, 0 save period in seconds.
> The expected behavior is that the value of the capacity parameter in the "Row Cache" row of the above nodetool output would report the setting for row_cache_size_in_mb.  If the value of row_cache_save_period is set to a positive value, the nodetool output correctly reports the capacity as the value for the row_cache_size_in_mb parameter.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)