Skip to content

Commit

Permalink
message.max.bytes should be 1048588 not 1 MB https://kafka.apache.org…
Browse files Browse the repository at this point in the history
  • Loading branch information
puellanivis committed Feb 15, 2024
1 parent b6c54b7 commit 1bbaf86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ func NewConfig() *Config {
c.Metadata.Full = true
c.Metadata.AllowAutoTopicCreation = true

c.Producer.MaxMessageBytes = 1000000
c.Producer.MaxMessageBytes = 1048588
c.Producer.RequiredAcks = WaitForLocal
c.Producer.Timeout = 10 * time.Second
c.Producer.Partitioner = NewHashPartitioner
Expand Down

0 comments on commit 1bbaf86

Please sign in to comment.