You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by "Aaron Smuts (JIRA)" <ji...@apache.org> on 2009/06/24 17:13:07 UTC

[jira] Commented: (JCS-60) Disk cache grows unnecessarily

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

Aaron Smuts commented on JCS-60:
--------------------------------

The first is not a bug.  Items are not removed from disk, they are merely removed from the key map.  The old slots are added to the recycle bin.  They will be used on the next put for an item that will fit in the spot.  

I'm not sure about optimization. Perhaps you didn't shutdown orderly.

> Disk cache grows unnecessarily
> ------------------------------
>
>                 Key: JCS-60
>                 URL: https://issues.apache.org/jira/browse/JCS-60
>             Project: JCS
>          Issue Type: Bug
>          Components: Indexed Disk Cache
>            Reporter: Alexander Sofronov
>            Assignee: Aaron Smuts
>
> I'm using JCS cache in UPDATE mode and I found that disk cache may grow when adding the cache entries with the same key but larger value.
> For example, 
> cache.put("key", "value");
> cache.put("key", "value1");
> cache.put("key", "value12");
> After that I see that *.data file contains all 3 entries. And the cache is not optimized at shutdown even when isShutdownOptimizationEnabled is set to true.
> I found a workaround for this - delete the key before writing.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org