Vadim Pakhnushev created IGNITE-28344:
-----------------------------------------

             Summary: 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


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)

Reply via email to