You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Vandahl (JIRA)" <ji...@apache.org> on 2015/11/20 14:40:11 UTC

[jira] [Commented] (JCS-154) CacheAccess.clear() does not clear indexed disk cache

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

Thomas Vandahl commented on JCS-154:
------------------------------------

Could you please switch on debug logging and post the lines containing "All keys" here?

> CacheAccess.clear() does not clear indexed disk cache
> -----------------------------------------------------
>
>                 Key: JCS-154
>                 URL: https://issues.apache.org/jira/browse/JCS-154
>             Project: Commons JCS
>          Issue Type: Bug
>          Components: Indexed Disk Cache
>    Affects Versions: jcs-2.0-beta-1
>            Reporter: Matthias Jordan
>            Assignee: Thomas Vandahl
>
> I created a cache using an auxiliary indexed disk cache. Calling {{clear()}} on the cache does not free disk space allocated by the disk cache. I suspect this also affects other auxiliary caches.
> In fact, adding new objects to the cache using the old keys, keeps allocating more disk space.
> E.g.: create cache, store a BLOB of 1 MB with key "A". 1 MB disk space is allocated for the BLOB. Now call {{clear()}} on the {{CacheAccess}} object. Store another 1 MB BLOB with key "A". Now 2 MB are allocated. 
> Calling {{AuxiliaryCache.removeAll()}} on the disk cache frees the disk space, though.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)