You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ryabov Dmitrii (JIRA)" <ji...@apache.org> on 2018/07/05 13:57:00 UTC
[jira] [Comment Edited] (IGNITE-2313) Need to add a mode to fail
atomic operations within a transaction
[ https://issues.apache.org/jira/browse/IGNITE-2313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16533578#comment-16533578 ]
Ryabov Dmitrii edited comment on IGNITE-2313 at 7/5/18 1:56 PM:
----------------------------------------------------------------
[~agoncharuk], I made improvement suggested by Anton and described this behaviour in {{withAllowAtomicOpsInTx()}} javadoc, can you look it?
[Upsource|https://reviews.ignite.apache.org/ignite/review/IGNT-CR-675], [CI tests|https://ci.ignite.apache.org/viewLog.html?buildId=1456467&tab=buildResultsDiv&buildTypeId=IgniteTests24Java8_RunAll] are ok.
was (Author: somefire):
[~agoncharuk], I made improvement suggested by Anton and described this behaviour in {{withAllowAtomicOpsInTx()}} javadoc, can you look it? [Upsource|https://reviews.ignite.apache.org/ignite/review/IGNT-CR-675]
> Need to add a mode to fail atomic operations within a transaction
> -----------------------------------------------------------------
>
> Key: IGNITE-2313
> URL: https://issues.apache.org/jira/browse/IGNITE-2313
> Project: Ignite
> Issue Type: Bug
> Components: cache
> Reporter: Dmitriy Setrakyan
> Assignee: Ryabov Dmitrii
> Priority: Major
> Fix For: 2.7
>
>
> Currently atomic operations within a transaction succeed without alarming a user that no transaction really occurs. We should add a mode to fail such operations (such mode should be turned off by default).
> New transaction configuration flag (default is {{false}}):
> {code}TransactionConfiguration.isAllowAtomicUpdatesInTransaction(){code}
> If the flag is violated, we should throw an exception with the following error message: {{Transaction spans operations on atomic cache (consider setting TransactionConfiguration.isAllowAttomicUpdatesInTransaction() flag to true)}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)