[Issue] RemoveEntry() does not get removed persisted entry

View: New views
3 Messages — Rating Filter:   Alert me  

[Issue] RemoveEntry() does not get removed persisted entry

by Rajesh SIa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have observed that 'removeEntry" does not remove the entry from the cache when the entry is not in memory, but exist as persisted entry.

Scenario:
1. Create a cache with capacity =10, LRUCache, cache.unlimited.disk=true
2. Add 100 elements (1..100) to cache
3. Try removing Ist entry 1 by calling 'removeEntry'
4. Now call getFromCache().

As a workaround i am calling flushEntry (), which for time being is savior for my code
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=400222&messageID=487466#487466


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: [Issue] RemoveEntry() does not get removed persisted entry

by Rajesh SIa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

please compare bug report CACHE-236.

Thanks for pointing out the problem.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=400222&messageID=488196#488196


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: [Issue] RemoveEntry() does not get removed persisted entry

by Rajesh SIa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks!

In the open bug you referred too, i have following observation
1. removeEntry() mehod is unable to delete disk cached file if cache is in full capacity and cache.persistence.overflow.only = true
[Comment] In my case cache.persistence.overflow.only = false

2. In the test, create 6 cache entires, loop them one by one, so that all 6 will saved to disk. Then for a specific entry (say entry 2) call method flushEntry then removeEntry, the file is not deleted.
[Comment] My observation is straight forward removeEntry doesn't work. :(

Also, I would like to know is it specific to HashDiskPersistenceListener or any listner.

Thanks in advance,
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=400222&messageID=488404#488404


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

LightInTheBox - Buy quality products at wholesale price!