[
https://issues.apache.org/jira/browse/IGNITE-5834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pavel Tupitsyn resolved IGNITE-5834.
------------------------------------
Resolution: Not A Problem
Not a problem actually:
{quote}
Currently tx is AutoCloseable and 'close' should be always called by
interface contract.
Currently Transaction is single-threaded and should not be used by multiple
concurrent threads. But if you call commitAsync and then call 'close' from
commitAsync listener this is correct usage and we should not prohibit
calling 'close' from another thread
{quote}
http://apache-ignite-developers.2346864.n4.nabble.com/Net-client-call-tx-close-in-other-thread-td20025.html
> .NET: Do not close transaction on async commit/rollback
> -------------------------------------------------------
>
> Key: IGNITE-5834
> URL: https://issues.apache.org/jira/browse/IGNITE-5834
> Project: Ignite
> Issue Type: Improvement
> Components: platforms
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Priority: Critical
> Labels: .NET
> Fix For: 2.2
>
>
> Committed / rolled back transactions do not need to be closed.
> {{TransactionImpl.CloseWhenComplete}} and {{PlatformTransactions.txClose}}
> perform unnecessary work. This also causes problems with {{commitAsync}} and
> {{rollbackAsync}} since we close a transaction on another thread.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)