[jboss-user] [JBossCache] - lock acquisition failed - pessimistic locking - read_uncommi

harisundhar do-not-reply at jboss.com
Wed Jan 30 04:02:09 EST 2008


Hi 
       i had posted a locking issue previously http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117973#4117973

this was my mistake, there was a synchronization problem while cache creation and there were 2 instances running ! 

now i have fixed and upgraded to jboss cache 2.0.0. yesterday i got the following lock issue - 

10:52:55,679 INFO  [WorkerThread#3[192.168.20.157:54241]] Exception while trying to write into cache : failure acquiring lock: fqn=/Indicatives/SAIL04035, caller=GlobalTransaction:<192.168.20.134:51000>:838, lock=write owner=GlobalTransaction:<192.168.20.134:51000>:837 (org.jboss.cache.lock.LockStrategyReadUncommitted at edeb72)
10:52:55,679 INFO  [WorkerThread#4[192.168.20.157:54246]] Exception while trying to write into cache : failure acquiring lock: fqn=/Indicatives/SAIL04034, caller=GlobalTransaction:<192.168.20.134:51000>:837, lock=write owner=GlobalTransaction:<192.168.20.134:51000>:838 (org.jboss.cache.lock.LockStrategyReadUncommitted at 1011edf)


i can see that both threads have accessed at the same time. this is the drawback of pessimistic locking and i should move to optimistic locking ? 



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

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



More information about the jboss-user mailing list