Getting Lock Timout error often , cache mode is local . No
other process holds the node. What could be the reason ?.
I am running a batch process to preload some data , most of
them succeeds and some throws the below error .
I
<attribute name="NodeLockingScheme">MVCC</attribute>
<attribute name="CacheMode">LOCAL</attribute>
<attribute name="LockAcquisitionTimeout">30000</attribute>
<attribute name="lockParentForChildInsertRemove">false</attribute>
org.jboss.cache.lock.TimeoutException: Unable to acquire
lock on Fqn [/ASOF/AXE/20100308/14] after [30000] milliseconds for requestor
[GlobalTransaction:<null>:55]! Lock held by
[GlobalTransaction:<null>:50]
at
org.jboss.cache.mvcc.MVCCNodeHelper.acquireLock(MVCCNodeHelper.java:170)
at
org.jboss.cache.mvcc.MVCCNodeHelper.wrapNodeForWriting(MVCCNodeHelper.java:259)
at
org.jboss.cache.interceptors.CacheLoaderInterceptor.loadIfNeeded(CacheLoaderInterceptor.java:282)
at
org.jboss.cache.interceptors.CacheLoaderInterceptor.visitGetKeyValueCommand(CacheLoaderInterceptor.java:158)
at
org.jboss.cache.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:97)
at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
at
org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:131)
at
org.jboss.cache.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:110)
at
org.jboss.cache.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:97)
at
org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
at org.jboss.cache.interceptors.TxInterceptor.attachGtxAndPassUpChain(TxInterceptor.java:284)
at
org.jboss.cache.interceptors.TxInterceptor.handleDefault(TxInterceptor.java:271)
at
org.jboss.cache.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:110)
at org.jboss.cache.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:97)
at
org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
at
org.jboss.cache.interceptors.CacheMgmtInterceptor.visitGetKeyValueCommand(CacheMgmtInterceptor.java:77)
at
org.jboss.cache.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:97)
at
org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
at org.jboss.cache.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:178)
at
org.jboss.cache.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:130)
at
org.jboss.cache.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:110)
at
org.jboss.cache.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:97)
at
org.jboss.cache.interceptors.InterceptorChain.invoke(InterceptorChain.java:265)
at org.jboss.cache.invocation.CacheInvocationDelegate.get(CacheInvocationDelegate.java:448)
at
org.jboss.cache.pojo.impl.InternalHelper.get(InternalHelper.java:100)
at
org.jboss.cache.pojo.impl.InternalHelper.getPojoReference(InternalHelper.java:47)
at org.jboss.cache.pojo.impl.PojoCacheDelegate.exists(PojoCacheDelegate.java:352)
at
org.jboss.cache.pojo.impl.PojoCacheImpl.exists(PojoCacheImpl.java:236)
at
com.trg.cache.CacheManager.exists(CacheManager.java:139)
at
com.trg.cache.CacheManager.detach(CacheManager.java:169)
at
com.trg.ricemanager.TemporalCacheManager.clearCache(TemporalCacheManager.java:349)
at
com.trg.ricemanager.TemporalCacheManager.clearAllFundsCache(TemporalCacheManager.java:313)
at
com.trg.ricemanager.TemporalCacheManager$AsOfDataPreloadThread.run(TemporalCacheManager.java:447)
INFO 14 Apr 16:59:15 [TemporalDataPreloadThread]
ricemanager.TemporalCacheManager (TemporalCacheManager.java:355) - Cleared
cache Successfully for the fund id 15 and for asOfDate 20100308
Regards,
The Rohatyn Group,
212-984-3512.