[rfc][icedtea-web] CacheUtil Clear Cache Small Fix

Jie Kang jkang at redhat.com
Fri Aug 29 16:01:08 UTC 2014


Hello,

When running resource tracker performance tests downloading a large number of small files I noticed that CacheUtil.clearCache (removes all files in cache) does not work as expected when used during runtime. The LRU file gets removed but the state of the LRU in-program remains such that my tests fail as follows:

Download 10 Items
CacheUtil.clearCache
Attempt Re-download of same 10 items : Error : recently_used file is remade using state of LRU in-program which still contains the first 10 items, so our tracker believes they exist in cache but they were all deleted.

This patch fixes this issue by also clearing the LRU when clearing the cache. I have also renamed the function to emptyCache in order to clash less with the function cleanCache (which removes files marked for delete, not all files) Thoughts?


Regards,

-- 

Jie Kang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itw-cacheutil-emptycache.patch
Type: text/x-patch
Size: 1560 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140829/2bf465b1/itw-cacheutil-emptycache.patch>


More information about the distro-pkg-dev mailing list