You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Pereslegin (JIRA)" <ji...@apache.org> on 2017/10/11 16:00:08 UTC

[jira] [Comment Edited] (IGNITE-6380) Exception should be thrown on cache creation attempt inside transaction

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

Pavel Pereslegin edited comment on IGNITE-6380 at 10/11/17 4:00 PM:
--------------------------------------------------------------------

[~avinogradov],
please, review my fix.

TC run: https://ci.ignite.apache.org/project.html?projectId=Ignite20Tests&branch_Ignite20Tests=pull%2F2818%2Fhead


was (Author: xtern):
[~avinogradov],
please, review my fix.

TC run: https://ci.ignite.apache.org/project.html?projectId=Ignite20Tests&branch_Ignite20Tests=pull%2F2818%2Fhead

Upsource: https://reviews.ignite.apache.org/ignite/review/IGNT-CR-365

> Exception should be thrown on cache creation attempt inside transaction
> -----------------------------------------------------------------------
>
>                 Key: IGNITE-6380
>                 URL: https://issues.apache.org/jira/browse/IGNITE-6380
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Yakov Zhdanov
>            Assignee: Pavel Pereslegin
>              Labels: newbie, usability
>
> Exception should be thrown on cache creation attempt inside transaction to prevent deadlocks since cache start triggers exchange and exchange cannot finish until all txs are finished.
> We need to check if thread owns a tx before starting cache and if it does then IllegalStateException should be thrown.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)