]
Ryan Emerson resolved ISPN-10943.
---------------------------------
Resolution: Done
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/jav...
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/i....
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.