[infinispan-issues] [JBoss JIRA] (ISPN-7470) Distributed executor does not fail over unless future.get() is called
Dan Berindei (JIRA)
issues at jboss.org
Tue Feb 14 07:40:00 EST 2017
Dan Berindei created ISPN-7470:
----------------------------------
Summary: 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.0.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.2.3#72005)
More information about the infinispan-issues
mailing list