You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Francisco Guerrero (Jira)" <ji...@apache.org> on 2026/09/27 20:27:00 UTC

[jira] [Updated] (CASSANDRA-21721) Tighten up NoSpamLogger changes to Caffeine cache

     [ https://issues.apache.org/jira/browse/CASSANDRA-21721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francisco Guerrero updated CASSANDRA-21721:
-------------------------------------------
     Bug Category: Parent values: Degradation(12984)Level 1 values: Other Exception(12998)
       Complexity: Low Hanging Fruit
      Component/s: Observability/Logging
    Discovered By: Code Inspection
    Fix Version/s: 6.0-alpha3
                   7.0
         Severity: Low
           Status: Open  (was: Triage Needed)

> 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
>          Components: Observability/Logging
>            Reporter: Francisco Guerrero
>            Assignee: Francisco Guerrero
>            Priority: Normal
>             Fix For: 6.0-alpha3, 7.0
>
>
> 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: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org