[jboss-dev-forums] [Design of JBossCache] - Re: Eviction thread behaviour

ben.wang@jboss.com do-not-reply at jboss.com
Thu Oct 26 00:49:43 EDT 2006


"bstansberry at jboss.com" wrote : I understand what you mean about FIFO or max age, but if eviction doesn't respect locks that can lead to serious problems; i.e. user thread doing a get acquires a lock in PessimisticLockInterceptor, then eviction thread evicts node, then user thread reaches TreeCache._get, which does a findNode, gets nothing and returns null.  No chance to reload from the cache loader as the user thread is already past the interceptor.

No, eviction should still respect the locks, of which what it is doing now if I am correct. The question is the lock wait time, whether it is 0 or the regular setting.

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

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



More information about the jboss-dev-forums mailing list