[infinispan-issues] [JBoss JIRA] (ISPN-10943) Handle thread pool queue rejection when invoking rxjava code

Will Burns (Jira) issues at jboss.org
Tue Nov 12 15:01:01 EST 2019


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

Will Burns updated ISPN-10943:
------------------------------
    Status: Open  (was: New)


> Handle thread pool queue rejection when invoking rxjava code
> ------------------------------------------------------------
>
>                 Key: ISPN-10943
>                 URL: https://issues.jboss.org/browse/ISPN-10943
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core
>            Reporter: Will Burns
>            Assignee: Will Burns
>            Priority: Major
>             Fix For: 10.1.0.Beta1
>
>
> Currently the BlockingRejectedExecutionHandler throws a Rejected exception at https://github.com/infinispan/infinispan/blob/master/commons/src/main/java/org/infinispan/commons/util/concurrent/BlockingRejectedExecutionHandler.java#L38 when a non blocking thread can't pass a task to the blocking queue.
> Unfortunately in rxjava 2 they catch the exception and log it and do nothing else at https://github.com/ReactiveX/RxJava/blob/2.x/src/main/java/io/reactivex/internal/schedulers/ExecutorScheduler.java#L175. This leads to having a publisher that never completes.
> We should be able to throw a different exception, not RejectedExecutionException, and rxjava2 should catch and properly set it in the publisher to prevent this from happening.



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


More information about the infinispan-issues mailing list