[jira] Commented: (JCS-60) Disk cache grows unnecessarily
"Aaron Smuts (JIRA)" <[email protected]> Wed, 24 Jun 2009 08:25:07 -0700 (PDT)
| Newsgroups | gmane.comp.jakarta.turbine.jcs.devel |
|---|---|
| Message-ID | <1285709865.1245857107347.JavaMail.jira@brutus> |
[ https://issues.apache.org/jira/browse/JCS-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723598#action_12723598 ]
Aaron Smuts commented on JCS-60:
--------------------------------
It would be a bug if the old spots don't make it into the recycle bin.
If there are no free bytes recorded, the disk cache will not try to optimize on shutdown.
> 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.