[infinispan-issues] [JBoss JIRA] (ISPN-7088) Interceptors should not access TransactionManager

Sebastian Łaskawiec (JIRA) issues at jboss.org
Mon Oct 10 04:54:00 EDT 2016


     [ https://issues.jboss.org/browse/ISPN-7088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebastian Łaskawiec updated ISPN-7088:
--------------------------------------
        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done


> Interceptors should not access TransactionManager
> -------------------------------------------------
>
>                 Key: ISPN-7088
>                 URL: https://issues.jboss.org/browse/ISPN-7088
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core
>            Reporter: Dan Berindei
>            Assignee: Dan Berindei
>            Priority: Critical
>              Labels: testsuite_failure
>             Fix For: 9.0.0.Beta1, 9.0.0.Final
>
>
> 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}}.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the infinispan-issues mailing list