[ 
https://issues.apache.org/jira/browse/IGNITE-8075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16450374#comment-16450374
 ] 

Pavel Tupitsyn edited comment on IGNITE-8075 at 4/24/18 6:46 PM:
-----------------------------------------------------------------

Actually, the big problem here is that we call {{registerTx}} in Java, which 
means that user has to manually {{Dispose}} every returned transaction. Yes, 
this problem will be handled by the finalizer, and we rely on finalizers for 
many Java references, but I'm still not sure about this use case. We should at 
least state this clearly in the XMLdoc.

Also, assertion in {{registerTx}} will fail if we call 
{{GetLocalActiveTransactions}} twice.

[~vozerov] thoughts?


was (Author: ptupitsyn):
Actually, the big problem here is that we call {{registerTx}} in Java, which 
means that user has to manually {{Dispose}} every returned transaction. Yes, 
this problem will be handled by the finalizer, and we rely on finalizers for 
many Java references, but I'm still not sure about this use case. We should at 
least state this clearly in the XMLdoc.

[~vozerov] thoughts?

> .NET: setRollbackOnTopologyChangeTimeout, withLabel, localActiveTransactions, 
> setTxTimeoutOnPartitionMapExchange
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-8075
>                 URL: https://issues.apache.org/jira/browse/IGNITE-8075
>             Project: Ignite
>          Issue Type: Improvement
>    Affects Versions: 2.4
>            Reporter: Alexei Scherbakov
>            Assignee: Ivan Daschinskiy
>            Priority: Major
>             Fix For: 2.6
>
>
> Neet to add new methods as part of .NET API:
> org.apache.ignite.configuration.TransactionConfiguration#txTimeoutOnPartitionMapExchange
>  - timeout for automatic rollback on exchange.
> org.apache.ignite.IgniteTransactions#withLabel - tx label
> org.apache.ignite.IgniteTransactions#localActiveTransactions - list of local 
> active transactions.
> org.apache.ignite.IgniteCluster#setTxTimeoutOnPartitionMapExchange
> Java implementation is currently available at a branch [1]
> [1] https://github.com/gridgain/apache-ignite/tree/ignite-6827-2



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to