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

Pavel Tupitsyn commented on IGNITE-20645:
-----------------------------------------

Merged to main: 
https://github.com/apache/ignite-3/commit/9b59ef6cc5974757628f3e2b83185c8430f81a01

> Make ComputeJob.execute asynchronous
> ------------------------------------
>
>                 Key: IGNITE-20645
>                 URL: https://issues.apache.org/jira/browse/IGNITE-20645
>             Project: Ignite
>          Issue Type: Improvement
>          Components: compute
>    Affects Versions: 3.0.0-beta1
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>            Priority: Critical
>              Labels: ignite-3
>             Fix For: 3.0.0-beta2
>
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
>
> *R ComputeJob.execute(...)* is synchronous, so a long-running job that 
> performs other async operations (network calls, Ignite API calls, etc) will 
> block the compute pool thread.
> Change it to *CompletableFuture<R> ComputeJob.executeAsync(...)* so that the 
> thread can do other things while the job is waiting on async IO.
> https://github.com/apache/ignite-3/blob/5b234df53f4bbf2ff78bc27636c5c936d159673b/modules/api/src/main/java/org/apache/ignite/compute/ComputeJob.java



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to