]
Will Burns updated ISPN-10915:
------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
CompletionStages.continueOnExecutor() does not complete the future on
rejection
-------------------------------------------------------------------------------
Key: ISPN-10915
URL:
https://issues.jboss.org/browse/ISPN-10915
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.4.16.Final, 10.0.1.Final
Reporter: Dan Berindei
Assignee: Will Burns
Priority: Major
Fix For: 10.1.0.Beta1
{{CompletionStages.continueOnExecutor()}} returns a {{CompletableFuture}} that is
supposed to complete after the supplied action has run on the supplied executor. If the
executor rejects the action, e.g. because it was stopped, the {{CompletableFuture}} never
completes.
E.g. {{JGroupsTransport.receiveClusterView()}} indirectly uses
{{CompletionStages.continueOnExecutor()}}, and it blocks view handling forever if a view
is received after the async operations executor has been shut down. In turn this blocks
all further view processing and the cache manager shutdown.