]
Tristan Tarrant updated ISPN-7470:
----------------------------------
Fix Version/s: 9.4.2.Final
(was: 9.4.1.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
Priority: Major
Fix For: 9.4.2.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.