From 3e7ceb9c3b0cff7ea3af6a85652b9d75ac28aab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Szynkiewicz?= Date: Fri, 19 Aug 2022 12:54:16 +0200 Subject: [PATCH] Resume REST Client Reactive request handling on error if suspended refs #27337 --- .../common/core/AbstractResteasyReactiveContext.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/AbstractResteasyReactiveContext.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/AbstractResteasyReactiveContext.java index 29d5efa755abd..3f1ddf0366b95 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/AbstractResteasyReactiveContext.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/AbstractResteasyReactiveContext.java @@ -169,6 +169,12 @@ public void run() { } if (aborted) { return; + } else if (suspended) { + log.error("Uncaught exception thrown when the request context is suspended. " + + " Resuming the request to unlock processing the error." + + " This may not be appropriate in your situation, please resume the request context when this exception is thrown. ", + t); + resume(t); } } }