ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ozerov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-1650) Add ability to specify thread pool for IgniteFuture listen/chain methods.
Date Thu, 22 Dec 2016 12:58:58 GMT

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

Vladimir Ozerov commented on IGNITE-1650:
-----------------------------------------

Updated and more correct design can be found in IGNITE-4477. 

> Add ability to specify thread pool for IgniteFuture listen/chain methods.
> -------------------------------------------------------------------------
>
>                 Key: IGNITE-1650
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1650
>             Project: Ignite
>          Issue Type: Task
>          Components: general
>    Affects Versions: ignite-1.4
>            Reporter: Vladimir Ozerov
>            Assignee: Chandresh Pancholi
>             Fix For: 2.0
>
>
> Closures passed to IgniteFuture listen() and chain() methods are executed either in the
same thread if future is completed, or in a completion thread (usually this is a thread from
one of Ignite pools).
> This enforces restrictions on what user can do in closures. He cannot use call operations,
he cannot call any Ignite operations. Otherwise deadlocks or starvation could occur.
> To fix that we should allow user to pass optional thread pool where passed closure should
be executed. This already done in Java 8 CompletableFuture. We should do almost the same.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message