Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-3877

SingleFileStore continues to consume space on the disk even if the free entries at end of the file are not in use. This space can be released back to the filesystem

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Obsolete
    • Icon: Major Major
    • 7.0.0.Alpha4
    • 6.0.0.Final
    • Loaders and Stores
    • None

      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.

              dberinde@redhat.com Dan Berindei (Inactive)
              rajeshjangam Rajesh Jangam (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: