Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spring-projectsGH-3695: Fix
MessagingMessageListenerAdapter
to not …
…ack when sync Fixes: spring-projects#3695 Even if th `@KafkaHandler` method is `void` the `DelegatingInvocableHandler` returns an empty `InvocationResult`. That triggers a `MessagingMessageListenerAdapter.handleResult()` logic. On the `completableFutureResult.whenComplete()` we call `acknowledge()` which is not expected for `void` POJO methods. * Fix `MessagingMessageListenerAdapter` to check for `isAsyncReplies()` before calling `acknowledge()` This is a regression after spring-projects#3528
- Loading branch information