You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladislav Pyatkov (JIRA)" <ji...@apache.org> on 2018/10/15 12:44:00 UTC

[jira] [Updated] (IGNITE-9885) Issue in termination of GridWorkerFuture

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

Vladislav Pyatkov updated IGNITE-9885:
--------------------------------------
    Description: 
Can to start a closure through method like

{{GridClosureProcessor#runLocalSafe(java.lang.Runnable)}}

but does not possible to wait termination of the task after cancellation.

For understanding need to look at {{GridWorkerFuture.cancel}}. The method affix an {{interrupted}} flag on executed thread, but not wait task termination. Having an instance of GridWorkerFuture, you can not to await real termination of task.

  was:
Can to start a closure through method like {{GridClosureProcessor#runLocalSafe(java.lang.Runnable)}}

but does not possible to wait termination of the task after cancellation.

For understanding need to look at {{GridWorkerFuture.cancel}}. The method affix an {{interrupted}} flag on executed thread, but not wait task termination. Having an instance of GridWorkerFuture, you can not to await real termination of task.


> Issue in termination of GridWorkerFuture
> ----------------------------------------
>
>                 Key: IGNITE-9885
>                 URL: https://issues.apache.org/jira/browse/IGNITE-9885
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Vladislav Pyatkov
>            Priority: Major
>
> Can to start a closure through method like
> {{GridClosureProcessor#runLocalSafe(java.lang.Runnable)}}
> but does not possible to wait termination of the task after cancellation.
> For understanding need to look at {{GridWorkerFuture.cancel}}. The method affix an {{interrupted}} flag on executed thread, but not wait task termination. Having an instance of GridWorkerFuture, you can not to await real termination of task.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)