commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Vandahl (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JCS-154) CacheAccess.clear() does not clear indexed disk cache
Date Fri, 20 Nov 2015 16:24:11 GMT

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

Thomas Vandahl resolved JCS-154.
--------------------------------
       Resolution: Not A Problem
    Fix Version/s: jcs-2.0-beta-2

Ok, then. I could not see any obvious problem in the code. Great that it works now.

> 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
>             Fix For: jcs-2.0-beta-2
>
>
> 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)

Mime
View raw message