[infinispan-issues] [JBoss JIRA] (ISPN-10915) CompletionStages.continueOnExecutor() does not complete the future on rejection

Dan Berindei (Jira) issues at jboss.org
Wed Nov 6 14:14:00 EST 2019


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

Dan Berindei updated ISPN-10915:
--------------------------------
        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done


> 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.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list