Francisco Guerrero created CASSANDRA-21721:
----------------------------------------------
Summary: Tighten up NoSpamLogger changes to Caffeine cache
Key: CASSANDRA-21721
URL: https://issues.apache.org/jira/browse/CASSANDRA-21721
Project: Apache Cassandra
Issue Type: Bug
Reporter: Francisco Guerrero
Assignee: Francisco Guerrero
After CASSANDRA-21474, the {{NoSpamLogger}} is now backed by a Caffeine cache
instead of an unbounded cache. However, the ticker instance does not use the
{{Clock}}'s instance. This ticket follows up on CASSANDRA-21474 to address the
following :
1. The cache ticker reads real wall-clock time, bypassing Clock.Global
2. {{max_statements_per_logger}} is parsed per created instance, and 0 disables
rate limiting.
3. {{recordStats()}} costs on hot paths and is never read
The patch will address item 1 by using {{Clock.Global}}. For 2, we parse the
configuration value one, ensuring the rate limiting is not disabled. And for 3,
we just remove {{recordStats}} since it's not being used anywhere.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]