Bug 1096726 - SingleFileStore continues to consume space on the disk even if the free entries at end of the file are not in use
Summary: SingleFileStore continues to consume space on the disk even if the free entri...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER2
: 6.3.0
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-12 10:46 UTC by Dan Berindei
Modified: 2015-01-26 14:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-26 14:03:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-3877 0 Major Resolved SingleFileStore continues to consume space on the disk even if the free entries at end of the file are not in use. This ... 2014-05-26 08:11:06 UTC

Description Dan Berindei 2014-05-12 10:46:40 UTC
We are testing the latest Infinispan 6.0 SingleFileStore version for our application.
We tend to create a lot of entries in the store and remove them when not required.
However, what we have observed is that the size of the file keeps on increasing as more data is being added/removed and that it does not get reclaimed.
This was not seen with earlier versions like 5.3.0. There the size of the cache folder would reduce as entries got removed.
We have attempted to create a fix for this issue and tested it in our environment. It keeps the space usage under control as compared to the original implementation.
As a part of this fix, we truncate the file (as a part of purge cycle) if there are free entries found towards the end of the file. Also these free entries are removed from the freeList.

Comment 2 Alan Field 2014-05-23 16:02:33 UTC
Verified with JDG 6.3.0 ER5


Note You need to log in before you can comment on or make changes to this bug.