You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use the following Producer configuration, message are not accepted by Kafka :
config:=sarama.NewConfig()
config.Producer.RequiredAcks=sarama.WaitForLocal// Only wait for the leader to ackconfig.Producer.Compression=sarama.CompressionSnappy// Compress messagesconfig.Producer.Flush.Frequency=500*time.Millisecond// Flush batches every 500msconfig.Version=sarama.V0_10_0_0producer, err:=sarama.NewAsyncProducer(brokerList, config)
iferr!=nil {
returnnil, err
}
producer.Input() <-&sarama.ProducerMessage{
Topic: topic,
Value: sarama.StringEncoder("foo"),
Timestamp: time.Now(),
}
According to @eapache in #750, the problem lies in the usage of compression in the producer compression.
By removing config.Producer.Compression = sarama.CompressionSnappy, messages are indeed accepted by Kafka and the timestamp is well set in the message.
The text was updated successfully, but these errors were encountered:
Versions
Sarama Version: master
Kafka Version: 0.10.0.1
Go Version: 1.7
Configuration
Default for Sarama and Kafka
Logs
Sarama producer :
Kafka :
Problem Description
If I use the following Producer configuration, message are not accepted by Kafka :
According to @eapache in #750, the problem lies in the usage of compression in the producer compression.
By removing
config.Producer.Compression = sarama.CompressionSnappy
, messages are indeed accepted by Kafka and the timestamp is well set in the message.The text was updated successfully, but these errors were encountered: