ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Scherbakov (Jira)" <j...@apache.org>
Subject [jira] [Comment Edited] (IGNITE-12209) Transaction system view
Date Mon, 30 Sep 2019 07:38:00 GMT

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

Alexei Scherbakov edited comment on IGNITE-12209 at 9/30/19 7:37 AM:
---------------------------------------------------------------------

[~nizhikov]

Note what 
org.apache.ignite.internal.processors.cache.transactions.IgniteTxState#allEntries and org.apache.ignite.internal.processors.cache.transactions.IgniteTxState#cacheIds

are unsynchronized and tx state can be concurrently updated if a transaction enlists keys
in the moment of view producing.

So current implementation is unsafe but probably will work somehow. 
I suggest to enclose methods in try .. catch(Throwable) to implement fallback in case something
goes wrong.



was (Author: ascherbakov):
[~nizhikov]

Note what 
org.apache.ignite.internal.processors.cache.transactions.IgniteTxState#allEntries and org.apache.ignite.internal.processors.cache.transactions.IgniteTxState#cacheIds

are unsynchronized and can be concurrently updated if a transaction enlists keys in the moment
of view producing.

So current implementation is unsafe but probably will work somehow. 
I suggest to enclose methods in try .. catch(Throwable) to implement fallback in case something
goes wrong.


> Transaction system view
> -----------------------
>
>                 Key: IGNITE-12209
>                 URL: https://issues.apache.org/jira/browse/IGNITE-12209
>             Project: Ignite
>          Issue Type: Sub-task
>    Affects Versions: 2.7.6
>            Reporter: Nikolay Izhikov
>            Assignee: Nikolay Izhikov
>            Priority: Major
>              Labels: IEP-35
>             Fix For: 2.8
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> IGNITE-12145 finished
> We should add transactions to the system views.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message