spring-kafka icon indicating copy to clipboard operation
spring-kafka copied to clipboard

read-committed breaks async-acks

Open fdutton opened this issue 1 year ago • 2 comments
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.

fdutton avatar Jun 11 '24 16:06 fdutton