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

Jason Brown updated CASSANDRA-14163:
------------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 3.11.x)
                   3.11.3
           Status: Resolved  (was: Patch Available)

committed [~zznate]'s version as sha 
{{0ab9fc4b73eeadff369435bcdf8b03310a34940c}}. Thanks

> RateBasedBackPressure unnecessarily invokes a lock on the Guava RateLimiter 
> ----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-14163
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14163
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Nate McCall
>            Assignee: Nate McCall
>            Priority: Minor
>              Labels: lhf
>             Fix For: 4.0, 3.11.3
>
>         Attachments: 14163.patch
>
>
> {{o.a.c.net.RateBasedBackPressure#apply}} calls {{getRate()}} on the 
> underlying Guava {{RateLimiter}} several times in quick succession (including 
> as the argument to a non level checked log statement). 
> Said {{getRate()}} method acquires a lock within {{RateLimiter}}, so just 
> getting a local variable reference will remove several calls and thus several 
> lock acquisitions. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to