[infinispan-issues] [JBoss JIRA] (ISPN-10683) Remove CustomFailurePolicy transaction parameters

Dan Berindei (Jira) issues at jboss.org
Fri Sep 27 10:39:00 EDT 2019


    [ https://issues.jboss.org/browse/ISPN-10683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13790321#comment-13790321 ] 

Dan Berindei commented on ISPN-10683:
-------------------------------------

Does it really make sense to register/unregister resources in the failure policy? I thought all the policy could do is throw a {{BackupFailureException}}.

Initially I meant to remove the transaction completely, but then I thought we might want a way to connect the prepare and commit commands for the same tx. 

> Remove CustomFailurePolicy transaction parameters
> -------------------------------------------------
>
>                 Key: ISPN-10683
>                 URL: https://issues.jboss.org/browse/ISPN-10683
>             Project: Infinispan
>          Issue Type: Task
>          Components: Core
>    Affects Versions: 10.0.0.CR2
>            Reporter: Dan Berindei
>            Priority: Major
>             Fix For: 10.0.0.Final
>
>
> The {{CustomFailurePolicy}} javadoc says it should be thread-safe, but the {{javax.transaction.Transaction}} javadoc doesn't say anything about thread safety. 
> We should replace the {{javax.transaction.Transaction}} with a {{GlobalTransaction}}, which we know is thread-safe.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list