Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2873

Incorrect GlobalTransaction's provided when both batching and deadlock detection are enabled

    XMLWordPrintable

    Details

      Description

      The dld configuration is skipped if baching is enables which results in this:

      21:45:33,884 ERROR [org.infinispan.transaction.TransactionCoordinator] (pool-31-thread-4) Error while processing prepare: java.lang.ClassCastException: org.infinispan.transaction.xa.GlobalTransaction cannot be cast to org.infinispan.transaction.xa.DldGlobalTransaction
      	at org.infinispan.interceptors.DeadlockDetectingInterceptor.visitPrepareCommand(DeadlockDetectingInterceptor.java:103) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.EntryWrappingInterceptor.visitPrepareCommand(EntryWrappingInterceptor.java:106) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.invokeNextAndCommitIf1Pc(AbstractTxLockingInterceptor.java:107) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.locking.OptimisticLockingInterceptor.visitPrepareCommand(OptimisticLockingInterceptor.java:135) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.NotificationInterceptor.visitPrepareCommand(NotificationInterceptor.java:58) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.TxInterceptor.invokeNextInterceptorAndVerifyTransaction(TxInterceptor.java:128) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.TxInterceptor.visitPrepareCommand(TxInterceptor.java:115) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:128) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:92) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:85) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:343) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.transaction.TransactionCoordinator.prepare(TransactionCoordinator.java:141) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.transaction.TransactionCoordinator.prepare(TransactionCoordinator.java:123) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.transaction.synchronization.SynchronizationAdapter.beforeCompletion(SynchronizationAdapter.java:68) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.transaction.tm.DummyTransaction.notifyBeforeCompletion(DummyTransaction.java:230) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.transaction.tm.DummyTransaction.runPrepare(DummyTransaction.java:242) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:86) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.transaction.tm.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:102) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.batch.BatchContainer.resolveTransaction(BatchContainer.java:123) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:105) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.batch.AutoBatchSupport.endAtomic(AutoBatchSupport.java:49) [infinispan-core-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.tree.TreeStructureSupport.exists(TreeStructureSupport.java:56) [infinispan-tree-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.tree.TreeStructureSupport.exists(TreeStructureSupport.java:46) [infinispan-tree-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.tree.TreeCacheImpl.createRoot(TreeCacheImpl.java:455) [infinispan-tree-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.tree.TreeCacheImpl.<init>(TreeCacheImpl.java:54) [infinispan-tree-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.tree.TreeCacheImpl.<init>(TreeCacheImpl.java:46) [infinispan-tree-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      	at org.infinispan.tree.TreeCacheFactory.createTreeCache(TreeCacheFactory.java:59) [infinispan-tree-5.2.2-SNAPSHOT.jar:5.2.2-SNAPSHOT]
      

        Attachments

          Activity

            People

            Assignee:
            mircea.markus Mircea Markus (Inactive)
            Reporter:
            brent.n.douglas@gmail.com Brent Douglas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: