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

Interceptors should not access TransactionManager

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            Public project attachment banner

              context keys: [headless, issue, helper, isAsynchronousRequest, project, action, user]
              current Project key: ISPN

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: