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
MonoThen creates deep stack traces leading to StackOverflowError #3095
Comments
|
not quite sure about " Can have a fix similar to recursion protection in reactor.core.publisher.FluxConcatArray#ConcatArraySubscriber". wil it fix never-finishing block() call? |
@nelapsi13. Yes, basically your code creates too deep stack trace so at some point any call that the reactor tries to do ends with Overflowexception which can not be handled. However, if we apply a trick, we can have that stack trace be in constant size, so an exception will not throw and the result wich unblock a lock will be delivered |
As a matter of fact, the case is different from
As Perhaps, instead of:
this could do the trick instead:
|
StackOverflowError is not a problem (more or less) |
The reactive chain is unable to terminate |
ok, thanks for clarification |
Expected behavior
some kind of error?
Actual behavior
block() never finishes
Steps to reproduce
following code
The text was updated successfully, but these errors were encountered: