-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onErrorContinue not invoked when RejectedExecutionException is thrown #1488
Comments
This makes the decision of "continuing" difficult (how much should we request? isn't there a risk of infinitely looping if the executor is actually shut down? etc...) Bounded executors are probably not the right tool if you can't deal with REEs using And in the case the |
@simonbasle we added a retryWhen, that handle this correctly, but as soon as the scheduler stops throwing the REE (and the task is submitted to the scheduler) the whole Flow simply stops.
In our (real) chain what happens is that, after correctly retrying and submitting the task to the scheduler, the |
@mbuchwald That said, I don't think this is necessarily an issue that prevents |
Even if |
@mbuchwald No, thats the correct behaviour because errors are terminal. That's why we introduced @simonbasle Is there any way to log a warning in this case, where |
@dfeist not really, this is not a centralized process. the |
We are dealing with an issue regarding the use of onErrorContinue. Basically, we need to handle any exception thrown and continue the execution. We added onErrorContinue in different flows but there seems to be a problem handling a RejectedExecutionException thrown by the scheduler to which we are doing the
publishOn
. In this case,doOnError
oronErrorResume
are invoked butonErrorContinue
is not. We are using reactor 3.2.0 but it was also reproduced in 3.2.5.I have the following test case that reproduce this scenario:
The text was updated successfully, but these errors were encountered: