You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Amelchev Nikita (JIRA)" <ji...@apache.org> on 2017/04/26 12:45:04 UTC
[jira] [Assigned] (IGNITE-4763) doSetRollbackOnly method to be
implemented in SpringTransactionManager
[ https://issues.apache.org/jira/browse/IGNITE-4763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amelchev Nikita reassigned IGNITE-4763:
---------------------------------------
Assignee: Amelchev Nikita
> doSetRollbackOnly method to be implemented in SpringTransactionManager
> ----------------------------------------------------------------------
>
> Key: IGNITE-4763
> URL: https://issues.apache.org/jira/browse/IGNITE-4763
> Project: Ignite
> Issue Type: Bug
> Components: ignite-spring
> Affects Versions: 1.8
> Reporter: Sumanta Ghosh
> Assignee: Amelchev Nikita
> Labels: newbie, patch
>
> This issue is raised in continuation with the message posted in ignite user forum (http://apache-ignite-users.70518.x6.nabble.com/SpringTransactionManager-Participating-in-existing-transactions-is-not-supported-td7305.html#a10624). Since the doSetRollBackOnly method is not implemented in SpringTransactionManager, it is not being possible to integrate with spring data's ChainedTransactionManager class. A simple fix (below) would work it seems (however, I did not yet tested with proper rollback test cases though, this implementation at least get rid of the exception chainedtransaction manager raises)
> @Override
> protected void doSetRollbackOnly(DefaultTransactionStatus status) throws TransactionException {
> Transaction txn = ((Ignite)this.getResourceFactory()).transactions().tx();
> if (txn!=null) txn.setRollbackOnly();
> }
> NOTE: This is the first time I am raising issues in apache. So, apologies if all the details are not proper.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)