Skip to content

Commit

Permalink
Changed kafka batchtimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierCazade committed Jun 14, 2022
1 parent 102ad5b commit 5626cf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/pipeline/encode/encode_kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ func NewEncodeKafka(params config.StageParam) (Encoder, error) {
WriteTimeout: time.Duration(writeTimeoutSecs) * time.Second,
BatchSize: jsonEncodeKafka.BatchSize,
BatchBytes: jsonEncodeKafka.BatchBytes,
// Temporary fix may be we should implement a batching systems
// https://github.com/segmentio/kafka-go/issues/326#issuecomment-519375403
BatchTimeout: 10 * time.Millisecond,
}

return &encodeKafka{
Expand Down

0 comments on commit 5626cf0

Please sign in to comment.