You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
StackOverflowError is considered a fatal error and falls into the general catch-all error from Hooks.onErrorDropped(consumer). We might want to clarify that @simonbasle
This commit makes the MonoCompletionStage drop errors that are thrown
inside the future.whenComplete block (which can happen with fatal
exceptions). Additionally, the default onErrorDropped behavior also logs
the dropped error.
This results in these errors being visible in the logs, where they were
previously swallowed by CompletionFuture.whenComplete.
It is expected that a fatal error like StackOverflowError isn't propagated as an onError signal. However, what is not good in your case is that you don't see any trace of the error.
Looks like the error was swallowed by the CompletableFuture.whenComplete method :(
We made it so Mono.fromFuture will now explicitly "drop" the error (see the Hooks.onErrorDropped consumer). Additionally, the default behaviour of the error drop hook is now to log the dropped exception additionally to bubbling it up.
As a result, what you'd see after the fix is a timeout exception + logs of the stack overflow error.
This commit makes the MonoCompletionStage drop errors that are thrown
inside the future.whenComplete block (which can happen with fatal
exceptions). Additionally, the default onErrorDropped behavior also logs
the dropped error.
This results in these errors being visible in the logs, where they were
previously swallowed by CompletionFuture.whenComplete.
This is a backport of #1126 (commit 7e29da8), as tracked in #1111
Expected behavior
StackOverFlow should be thrown
Actual behavior
java.lang.IllegalStateException: Timeout on blocking read for 5000 MILLISECONDS
Steps to reproduce
run strange method provided:
Reactor Core version
3.1.5.RELEASE
JVM version (e.g.
java -version
)java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)
The text was updated successfully, but these errors were encountered: