[
https://issues.apache.org/jira/browse/CASSANDRA-14366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18100372#comment-18100372
]
Arvind Kandpal commented on CASSANDRA-14366:
--------------------------------------------
Hi [~smiklosovic] ,
I have updated {{{}InfoTest.java{}}}. The test now prepares and executes a real
statement via {{sessionNet()}} and properly asserts that {{{}entries{}}},
{{{}size{}}}, and {{executions}} are greater than zero.
I also verified the behavior manually using {{{}cassandra-stress{}}}:
{code:java}
bin/nodetool info
ID : 6d194555-f6eb-41d0-c000-000000000001
Gossip active : true
Native Transport active: true
Load : 138.75 KiB
Uncompressed load : 184.39 KiB
Generation No : 1785405517
Uptime (seconds) : 321
Heap Memory (MB) : 1114.18 / 7840.00
Off Heap Memory (MB) : 0.00
Data Center : datacenter1
Rack : rack1
Exceptions : 0
Key Cache : entries 19, size 1.52 KiB, capacity 100 MiB, 64 hits,
81 requests, 0.790 recent hit rate, 14400 save period in seconds
Row Cache : entries 0, size 0 bytes, capacity 0 bytes, 0 hits, 0
requests, NaN recent hit rate, 0 save period in seconds
Counter Cache : entries 0, size 0 bytes, capacity 50 MiB, 0 hits, 0
requests, NaN recent hit rate, 7200 save period in seconds
Prepared Stmt Cache : entries 1, size 2.54 KiB, capacity 30 MiB, 12500
executions, 0 evictions
Network Cache : size 8 MiB, overflow size: 0 bytes, capacity 128 MiB
Percent Repaired : 100.0%
Token : (invoke with -T/--tokens to see all 16 tokens)
Bootstrap state : COMPLETED
Bootstrap failed : false
Decommissioning : false
Decommission failed : false
{code}
The PR has been updated with the test changes. Please take a look!
> Add prepared statement cache stats to nodetool info
> ---------------------------------------------------
>
> Key: CASSANDRA-14366
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14366
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: Observability/Metrics, Tool/nodetool
> Reporter: Jon Haddad
> Assignee: Arvind Kandpal
> Priority: Normal
> Fix For: 7.x
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> We expose some cache stats in {{nodetool info}}, let's add prepared statement
> cache stats.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]