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

Transactions not being cleared from transaction table when using REPL and recovery

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 5.1.0.CR2
    • 5.1.0.CR1
    • Transactions
    • None

      The attached test case results in a failure to stop the cache in time with a warning message like this:

      2011-12-06 17:34:20,018 31733 WARN  [org.infinispan.transaction.TransactionTable] (main:) ISPN000100: Stopping but there're transactions that did not finish in time: 
      localTransactions={TransactionImple < ac, BasicAction: 0:ffffa9fe8742:dc96:4ede43ed:2 status: ActionStatus.COMMITTED >=LocalXaTransaction{xid=< 
      131076, 29, 28, 0000000000-1-1-87-2-1216600-36-10678-3467-19000249, 0000000000-1-1-87-2-1216600-36-10678-3467-190003 >} 
      LocalTransaction{remoteLockedNodes=null, isMarkedForRollback=false, transaction=TransactionImple < ac, BasicAction: 0:ffffa9fe8742:dc96:4ede43ed:2 status: 
      ActionStatus.COMMITTED >, lockedKeys=null, backupKeyLocks=null, viewId=1} org.infinispan.transaction.xa.recovery.RecoveryAwareLocalTransaction@1}, 
      remoteTransactions{}

      It would appear that the implicitly started cache operation for "c0.put(1, "v1");" is not properly cleared?

      2011-12-06 17:33:49,862 1577  TRACE [org.infinispan.CacheImpl] (main:) Implicit transaction started!
      2011-12-06 17:33:49,862 1577  TRACE [org.infinispan.CacheImpl] (main:) Marked tx as implicit.
      2011-12-06 17:33:49,863 1578  TRACE [org.infinispan.interceptors.InvocationContextInterceptor] (main:___defaultcache) Invoked with command 
      PutKeyValueCommand{key=1, value=v1, flags=null, putIfAbsent=false, lifespanMillis=-1, maxIdleTimeMillis=-1} and InvocationContext 
      [LocalTxInvocationContext{flags=null}]
      2011-12-06 17:33:49,863 1578  TRACE [org.infinispan.statetransfer.StateTransferLockImpl] (main:___defaultcache) Acquired shared state transfer shared lock, 
      total holders: 1
      2011-12-06 17:33:49,866 1581  TRACE [org.infinispan.transaction.TransactionTable] (main:___defaultcache) Created a new tx: LocalXaTransaction{xid=null} 
      LocalTransaction{remoteLockedNodes=null, isMarkedForRollback=false, transaction=TransactionImple < ac, BasicAction: 0:ffffa9fe8742:dc96:4ede43ed:2 status: 
      ActionStatus.RUNNING >, lockedKeys=null, backupKeyLocks=null, viewId=1} org.infinispan.transaction.xa.recovery.RecoveryAwareLocalTransaction@1
      ...
      2011-12-06 17:33:49,876 1591  TRACE [org.infinispan.CacheImpl] (main:) Committing transaction as it was implicit: TransactionImple < ac, BasicAction: 
      0:ffffa9fe8742:dc96:4ede43ed:2 status: ActionStatus.RUNNING >
      

      Find attached both test and trace log file.

        1. infinispan.log
          535 kB
        2. SampleTest.java
          4 kB

              mircea.markus Mircea Markus (Inactive)
              rh-ee-galder Galder Zamarreño
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: