spring-kafka
spring-kafka copied to clipboard
read-committed breaks async-acks
trafficstars
In what version(s) of Spring for Apache Kafka are you seeing this issue?
3.2.0
Describe the bug
KafkaMessageListenerContainer (at line 2041) assumes that offsets are contiguous. This is not true when using read_committed as the broker will not supply transactional messages that were not committed.
To Reproduce
Configure a consumer to use async-acks and configure the container to read-committed. Consume messages from a topic that has some transactional messages that were rolled-back. Observe that the container pauses awaiting acknowledgement of an offset that was not in the batch.