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

Davide Giannella closed OAK-6413.
---------------------------------

Bulk close for 1.6.3

> FileCache getIfPresent doesn't update cache hit/miss counters
> -------------------------------------------------------------
>
>                 Key: OAK-6413
>                 URL: https://issues.apache.org/jira/browse/OAK-6413
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: blob
>    Affects Versions: 1.6.1
>            Reporter: Ioan-Cristian Linte
>            Assignee: Amit Jain
>            Priority: Minor
>             Fix For: 1.8, 1.7.4, 1.6.3
>
>
> {{FileCache.getIfPresent}} bypasses cache access if key is not in cache and 
> CacheStats for "DataStore-DownloadCache" MBean will always have 100% hit rate 
> even when Blobs will be downloaded from the BlobStore backend by 
> {{AbstractSharedCachingDataStore}} because of the miss in the cache.
> I suggest the following change:
> {{FileCache.getIfPresent}} to call {{CacheLIRS.getIfPresent}} which will 
> update the cache stats (miss and hit counters).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to