[infinispan-issues] [JBoss JIRA] (ISPN-7470) Distributed executor does not fail over unless future.get() is called

Galder Zamarreño (JIRA) issues at jboss.org
Mon Jun 25 07:22:08 EDT 2018


     [ https://issues.jboss.org/browse/ISPN-7470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Galder Zamarreño updated ISPN-7470:
-----------------------------------
    Fix Version/s: 9.4.0.Final
                       (was: 9.3.0.Final)


> Distributed executor does not fail over unless future.get() is called
> ---------------------------------------------------------------------
>
>                 Key: ISPN-7470
>                 URL: https://issues.jboss.org/browse/ISPN-7470
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 8.2.6.Final, 9.0.0.CR1
>            Reporter: Dan Berindei
>            Assignee: William Burns
>             Fix For: 9.4.0.Final
>
>
> After ISPN-6392, {{DistributedExecutorService.submit(...)}} nominally returns a {{CompletableFuture}}. However, it doesn't behave like a regular {{CompletableFuture}}, because it doesn't run the failure policy until the user calls {{future.get()}}. 
> {{future.isComplete()}} will return {{true}} before running the failure policy, and {{future.whenComplete(callback)}} will also execute the callback before running the failure policy.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the infinispan-issues mailing list