Skip to content

Commit

Permalink
check kafka produce out-of-order IBM/sarama#2619
Browse files Browse the repository at this point in the history
  • Loading branch information
wk989898 committed Jun 4, 2024
1 parent 5e0c851 commit ae93222
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/sink/kafka/sarama.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func NewSaramaConfig(ctx context.Context, o *Options) (*sarama.Config, error) {
config.Net.DialTimeout = o.DialTimeout
config.Net.WriteTimeout = o.WriteTimeout
config.Net.ReadTimeout = o.ReadTimeout
config.Net.MaxOpenRequests = 1

config.Producer.Partitioner = sarama.NewManualPartitioner
config.Producer.MaxMessageBytes = o.MaxMessageBytes
Expand Down

0 comments on commit ae93222

Please sign in to comment.