Looking at the logs,  I do not think this is related to the eviction policy 
running.

I definatly see one thread getting a write lock, then another thread getting a 
write lock (for the same node) before the first one is finished.  Here is what 
I see happening....
T1 is Thread1, T2 is Thread2.  (Please excuse the ascii sequence diagram)


  | T1        T2          Cache           NodeEventq
  | 
  | put ------------------> add
  | nodeEvent---------------------------------> add
  | remove----------------> remove
  |          put ---------> add
  |          nodeEvent------------------------> add
  | nodeEvent---------------------------------> remove
  |          remove-------> remove
  |          nodeEvent------------------------> remove
  | 

Then when the eviction Timer wakes up and tries to run through the 
nodeEventQueue, it hits 2 adds then 2 deletes.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872664#3872664

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872664


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to