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 Tupitsyn (Jira)" <ji...@apache.org> on 2023/10/13 06:50:00 UTC
[jira] [Updated] (IGNITE-20645) Make ComputeJob.execute asynchronous
[ https://issues.apache.org/jira/browse/IGNITE-20645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Tupitsyn updated IGNITE-20645:
------------------------------------
Description:
*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
> 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
>
>
> *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)