-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Messages produced with repetitive offset #993
Comments
Offsets are set by the broker when the messages are received, not by the producer. I don't understand what the difference could be here. |
I tried many times and the result was always the same. The weird thing is that as far as I remember the offsets reported back by Sarama on the success channel were correct :-| |
@edenhill could this be a bug in kafkacat somehow? |
I logged all messages on the consumer part as well and offsets are indeed messed up. Doesn't look like a kafkacat issue. On the other hand, the consumer uses librdkafka. BTW tried with Sarama 1.15.0, no change. |
In hindsight #1032 was almost certainly a duplicate of this, but it should be fixed in master now. |
Versions
Sarama Version: 1.14.0
Kafka Version: 0.11.0.0
Go Version: 1.9.2
Configuration
What configuration values are you using for Sarama and Kafka?
Kafka is using the default config.
Logs
Sarama:
Problem Description
Produced 60 messages into
data.streams
and it seems that the first message was produced with offset 0, all other with offset 59. My program is misbehaving because of that and here is the output of kafkacat:I was actually expecting to see the following output. This is what is produced when I use confluent-kafka-go instead of Sarama in the same producer logic:
The text was updated successfully, but these errors were encountered: