confluentinc / librdkafka

The Apache Kafka C/C++ library
Other
258 stars 3.15k forks source link

Offsets not being committed when leader epoch == 0 #4882

Open hgeraldino opened 3 hours ago

hgeraldino commented 3 hours ago

Description

https://github.com/confluentinc/librdkafka/pull/4442 addressed an issue where offsets where not committed when leader epoch was the default (-1).

We've seen a different corner case, where offsets are not committed if the leader epoch is zero. This happens when enable.partition.eof is set to true and the fetcher reaches _PARTITION_EOF, as can be seen in the attached logs

How to reproduce

Client configuration:

group.id: my-group
auto.commit.interval.ms: 1000
enable.auto.commit: true
auto.offset.reset: smallest

Checklist

IMPORTANT: We will close issues where the checklist has not been completed.

Please provide the following information:

hgeraldino commented 3 hours ago

export-filtered.txt