Open roignpar opened 4 years ago
@edenhill can you provide a comment here? This issue is on librdkafka, does not have to do with the go wrapper
@roignpar not sure that's your issue but: from what I remember the transaction adds some "markers" as message into the topic, and the .Committed()
won't reflect the truth.
Try to use .Position()
with the right TopicPartition{} instead :)
Since this is an old version, do you still see this error with the latest version?
Description
confluent-kafka-go: 1.4.2 librdkafka: 17040127 1.4.2-dirty broker: cp-kafka docker image, tried with
5.3.1 (Kafka 2.3.0)
and5.5.1 (Kafka 2.5.0)
OS: Linux 5.7.17-2-MANJAROWhen sending consumer offsets as part of a transaction and retrieving the consumer offsets with
.Committed
immediately after committing the transaction the returned offsets are not the ones sent in the transaction. If there is a small delay between committing and retrieving, the offsets are correct.How to reproduce
Output:
Broker logs are quite verbose, seems to ignore LOG4J env config vars.
Checklist
Please provide the following information:
LibraryVersion()
):ConfigMap{...}
"debug": ".."
as necessary)