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

Ekaterina Dimitrova commented on CASSANDRA-18864:
-------------------------------------------------

CASSANDRA-18805 - the issue was caught there during the upgrade of caffeine 
cache. There is a fix about to be committed soon, together with improved 
testing.

Closing as duplicate

> CIDR permission cache probably does not work
> --------------------------------------------
>
>                 Key: CASSANDRA-18864
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18864
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jacek Lewandowski
>            Priority: Normal
>
> CIDR permission cache code:
> {code:java}
>     /**
>      * Invalidate a role from CIDR permissions cache
>      * @param roleName role for which to invalidate the cache
>      * @return boolean returns true if given role found in the cache and 
> invalidated, otherwise returns false
>      */
>     public boolean invalidateCidrPermissions(String roleName)
>     {
>         if (cache.getIfPresent(roleName) == null)
>             return false;
>         invalidate(RoleResource.role(roleName));
>         return true;
>     }
> {code}
> passes {{String}} role name to the cache and if it returns {{null}} it just 
> returns {{false}}. It will always return {{null}} because cache expects 
> objects of type {{RoleResource}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to