Iman Rahmatizadeh
unread,Sep 23, 2010, 6:36:39 AM9/23/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Salve
Hi,
Just by taking a quick look at the get & put methods in the Lru3Cache
class in salve(1.1), it seems to me it might have concurrency issues
with multiple threads. for example one thread will find a bean in
element #2 and one in #0, but before returning the element the other
one swaps it place.
Actually I made a custom implementation of Cache interface, similar to
Lru3Cache, and had this problem in high loads on my server, where a
wrong bean was returned in place of the actual one. It seems the
original impl. might also have this problem. Anybody else seen this
problem ?
Iman