[
https://issues.apache.org/jira/browse/IGNITE-28344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vadim Pakhnushev updated IGNITE-28344:
--------------------------------------
Release Note: Future returned from a compute job is not automatically
canceled to allow normal completion even if a cancellation was requested.
> Don't cancel future returned from the job when canceling the job
> ----------------------------------------------------------------
>
> Key: IGNITE-28344
> URL: https://issues.apache.org/jira/browse/IGNITE-28344
> Project: Ignite
> Issue Type: Bug
> Components: compute ai3
> Reporter: Vadim Pakhnushev
> Assignee: Vadim Pakhnushev
> Priority: Major
> Labels: ignite-3
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When a compute job returns a CompletableFuture and the job is cancelled,
> QueueEntry.interrupt() calls jobFuture.cancel(true) which immediately
> completes the future with CancellationException.
> This prevents the job from completing normally after cooperative cancellation
> - the job detects isCancelled(), does cleanup, and tries to complete the
> future with a result, but it's already cancelled.
> We need to remove jobFuture.cancel(true) from QueueEntry.interrupt() to align
> with the requirement from the IGNITE-27857
--
This message was sent by Atlassian Jira
(v8.20.10#820010)