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

Sandeep More commented on KNOX-2214:
------------------------------------

[~smolnar] we use google cache elsewhere which is similar to this. The reason 
why timed cache were not used are
 # There are other implementations that do not use cache i.e. alias 
implementation, the idea was to make this implementation reusable by all 
implementations.
 # Using this would mean refactoring of existing code.
 # In-memory cache implementation is not used so there is really not that much 
incentive to refactor the code.

> Reaping of expired Knox tokens
> ------------------------------
>
>                 Key: KNOX-2214
>                 URL: https://issues.apache.org/jira/browse/KNOX-2214
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 1.4.0
>            Reporter: Philip Zampino
>            Assignee: Sandeep More
>            Priority: Major
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> When the TokenStateService is employed, if Knox-issued tokens aren't 
> explicitly cancelled, then they remain in the persistent store forever. The 
> TokenStateService should maintain a thread that removes expired tokens.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to