Description
In what version(s) of Spring for Apache Kafka are you seeing this issue?
3.0.12
Describe the bug
Doc says
it can be useful to manually assign the partitions and not use Kafka’s group management (...) You should also set the container’s AckMode to MANUAL to prevent the container from committing offsets for a null consumer group
That is not enough, because DefaultErrorHandler by default has ackAfterHandle == true
and commit the offset on exception.
Should I create and Doc PR to mention
+ You should also set the container’s error handler
setAckAfterHandle(false)
to prevent the container from committing offsets on error
?
To be honest, preventing the container from committing offsets should work automatically when @TopicPartition
is detected...