I could not find any documentation related to this issue, hence the question.
What happens if @KafkaListener
method does not call acknowledgement.acknowledge()
at all when the ackMode
is set to MANUAL_IMMEDIATE
but exits out of the method successfully without any exceptions.
We encountered this issue in one of our consumers and lost the message (precisely the offset moved, we had expected the offset to not move since we never called acknowledgement.acknowledge()
), is this expected behaviour?
The question here seems to address the same issue but never received an answer as to what would happen when there are no exceptions, as I believe the error handler & recoverer come into play only when exceptions are thrown and not during message un-acknowledged situations.