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

Interceptors should not access TransactionManager

XMLWordPrintable

      With ISPN-5469, we are no longer executing all the interceptor on the user thread, even on the originator. That means trying to read the thread-local transaction with TransactionManager.getTransaction() sometimes won't work, so interceptors should avoid it.

      E.g. InvocationContextInterceptor.markTxForRollbackAndRethrow() wants to rollback the current transaction but doesn't find any transaction bound to the current thread, causing failures in PessimisticTxPartitionAndMergeDuringRuntimeTest.

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: