Roman Puchkovskiy created IGNITE-16705:
------------------------------------------

             Summary: Resolve Compute futures on node stop that had no chance 
to be executed
                 Key: IGNITE-16705
                 URL: https://issues.apache.org/jira/browse/IGNITE-16705
             Project: Ignite
          Issue Type: Improvement
          Components: compute
            Reporter: Roman Puchkovskiy
            Assignee: Roman Puchkovskiy
             Fix For: 3.0.0-alpha5


We execute Compute jobs using a separate ExecutorService. It has a bounded 
number of threads and an unbounded work queue. It might happen that on node 
stop some tasks are not executed, so their corresponding futures never get 
resolved.

The standard CompletableFuture does not provide any built-in mechanisms for 
solving this problem.

We should track the futures ourselves and cancel the unresolved ones after 
stopping the executor.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to