Skip to content

Commit 6c0427e

Browse files
ryanswechspring-builds
authored andcommitted
GH-3843: Fix MessagingMessageListenerAdapter Error swallowing
Fixes: #3843 Issue link: #3843 Signed-off-by: Ryan Swech <[email protected]> [[email protected] Improve commit message] Signed-off-by: Artem Bilan <[email protected]> (cherry picked from commit bef69c3)
1 parent 192e9e2 commit 6c0427e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-kafka/src/main/java/org/springframework/kafka/listener/adapter/MessagingMessageListenerAdapter.java

+1
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ protected void invoke(Object records, @Nullable Acknowledgment acknowledgment, C
431431
catch (Error e) {
432432
listenerError = e;
433433
currentObservation.error(e);
434+
throw e;
434435
}
435436
finally {
436437
if (listenerError != null || result == null) {

0 commit comments

Comments
 (0)