You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/06/01 15:01:04 UTC
[jira] [Commented] (IGNITE-4887) Support for starting transaction
in another thread
[ https://issues.apache.org/jira/browse/IGNITE-4887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16033113#comment-16033113 ]
ASF GitHub Bot commented on IGNITE-4887:
----------------------------------------
GitHub user voipp opened a pull request:
https://github.com/apache/ignite/pull/2061
IGNITE-4887 Support for starting transaction in another thread
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/voipp/ignite IGNITE-4887
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/2061.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2061
----
commit 3dc81c6797ab05b07f41c1fe016248b14cbbbe89
Author: voipp <al...@gmail.com>
Date: 2017-05-25T15:56:45Z
IGNITE-4887 Support for starting transaction in another thread
----
> Support for starting transaction in another thread
> --------------------------------------------------
>
> Key: IGNITE-4887
> URL: https://issues.apache.org/jira/browse/IGNITE-4887
> Project: Ignite
> Issue Type: Improvement
> Components: general
> Affects Versions: 1.9
> Reporter: Alexey Kuznetsov
> Assignee: Alexey Kuznetsov
>
> Consider the following pseudo-code:
> {code:xml}
> IgniteTransactions transactions = ignite1.transactions();
> Transaction tx = startTransaction(transactions);
> cache.put("key1", 1);
> tx.stop();
> {code}
> And in another thread:
> {code:xml}
> transactions.txStart(tx);
> cache.put("key3", 3);
> cache.remove("key2");
> tx.commit();
> {code}
> The Api should be implemented , that let you continue transaction in another thread.
> method stop() should mark the transaction as unavailable for further commit.
> method txStart() should resume the transaction.
> reason behind the proposal :
> Consider the next scenario:
> we begin transaction, doing some changes and start async future that will be able to introduce futher changes into transaction and commit it in the end.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)