1 Reply Latest reply on May 25, 2017 1:41 PM by Paul Ferraro

    Unable to acquire lock after 15 seconds

    Rahul Bhoyar Newbie

      Hello,

      We are using wildfly 11.0.0. alpha1 in domain and cluster mode.

       

      We are getting below error in wildfly server logs. We have
      wildfly  configured in domain mode in cluster. Both the instances are hosted on a
      single Linux VM. Our development team observed that  after removing '/distributable' tag from
      web.xml this issue gets resolved.

       

      Any
      idea what might be causing this issue?

       

       

      09:36:54,043 ERROR
      [org.infinispan.interceptors.InvocationContextInterceptor] (default task-4)
      ISPN000136: Error executing command GetKeyValueCommand, writing keys []:
      org.infinispan.util.concurrent.TimeoutException: ISPN000299: Unable to acquire
      lock after 15 seconds for key
      SessionCreationMetaDataKey(Nqkh-gZJbdLcXN9PhKduV-sjOnasemMoZSFqu1A4) and
      requestor GlobalTransaction:<master:xxxx-1>:1541:local. Lock is held by
      GlobalTransaction:<master:xxxx>:1540:local

              at
      org.infinispan.util.concurrent.locks.impl.DefaultLockManager$KeyAwareExtendedLockPromise.lock(DefaultLockManager.java:238)

              at
      org.infinispan.interceptors.locking.AbstractLockingInterceptor.lockAndRecord(AbstractLockingInterceptor.java:193)

              at
      org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.checkPendingAndLockKey(AbstractTxLockingInterceptor.java:193)

              at
      org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.lockOrRegisterBackupLock(AbstractTxLockingInterceptor.java:116)

              at
      org.infinispan.interceptors.locking.PessimisticLockingInterceptor.visitDataReadCommand(PessimisticLockingInterceptor.java:71)

              at
      org.infinispan.interceptors.locking.AbstractLockingInterceptor.visitGetKeyValueCommand(AbstractLockingInterceptor.java:80)

              at
      org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:43)

              at
      org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)

              at
      org.infinispan.interceptors.TxInterceptor.enlistReadAndInvokeNext(TxInterceptor.java:346)

              at
      org.infinispan.interceptors.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:331)

              at
      org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:43)

              at
      org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)

              at
      org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:113)"

        • 1. Re: Unable to acquire lock after 15 seconds
          Paul Ferraro Master

          Can you describe your web session access?  Are there multiple threads accessing the same web session concurrently?  If so, this can cause lock acquisition timeouts, and you'd want to use the "concurrent" web cache configuration.  To switch, change the default-cache of your web cache-container to this value.  This configuration allows for higher concurrency at a performance cost.

          e.g.

          <cache-container name="web" default-cache="concurrent"><!-- ... --></cache-container>