Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-3695: Fix
MessagingMessageListenerAdapter
to not ack when sync
Fixes: #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 #3528
- Loading branch information