[ 
https://issues.apache.org/jira/browse/IGNITE-27857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pavel Tupitsyn updated IGNITE-27857:
------------------------------------
    Description: 
Compute job cancellation is cooperative:
* Ignite sets *JobExecutionContext.isCancelled*
* Job implementation polls the flag
  * Job may cancel the processing and return a cancelled future
  * Job may ignore the cancellation request and return a completed future

If the job returns a completed future, job status *must not* be CANCELED.

The wrong behavior is demonstrated by 
*ItComputeBaseTest#cancelsNotCancellableJob*

  was:
Compute job cancellation is cooperative:
* Ignite sets *JobExecutionContext.isCancelled*
* Job implementation polls the flag
  * Job may cancel the processing and return a cancelled future
  * Job may ignore the cancellation request and return a completed future

If the job returns a completed future, job status *must not* be CANCELED.


> Job status is CANCELED when job ran to completion
> -------------------------------------------------
>
>                 Key: IGNITE-27857
>                 URL: https://issues.apache.org/jira/browse/IGNITE-27857
>             Project: Ignite
>          Issue Type: Bug
>          Components: compute ai3
>            Reporter: Pavel Tupitsyn
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.2
>
>
> Compute job cancellation is cooperative:
> * Ignite sets *JobExecutionContext.isCancelled*
> * Job implementation polls the flag
>   * Job may cancel the processing and return a cancelled future
>   * Job may ignore the cancellation request and return a completed future
> If the job returns a completed future, job status *must not* be CANCELED.
> The wrong behavior is demonstrated by 
> *ItComputeBaseTest#cancelsNotCancellableJob*



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

Reply via email to