Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D3D04187D2 for ; Fri, 20 Nov 2015 16:24:11 +0000 (UTC) Received: (qmail 84247 invoked by uid 500); 20 Nov 2015 16:24:11 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 84102 invoked by uid 500); 20 Nov 2015 16:24:11 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 83818 invoked by uid 99); 20 Nov 2015 16:24:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2015 16:24:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0FA292C1F71 for ; Fri, 20 Nov 2015 16:24:11 +0000 (UTC) Date: Fri, 20 Nov 2015 16:24:11 +0000 (UTC) From: "Thomas Vandahl (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (JCS-154) CacheAccess.clear() does not clear indexed disk cache MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)