kgo config: make max record batch bytes 256M
The prior number, fully expanded, was a typo by two bytes.
@@ -268,10 +268,10 @@ func (cfg *cfg) validate() error {
// For batches, we want at least 512 (reasonable), and the
// upper limit is the max num when a uvarint transitions from 4
- // to 5 bytes. The upper limit is also more than reasoanble
- // (268M).
+ // to 5 bytes. The upper limit is also more than reasonable
+ // (256MiB).
{name: "max record batch bytes", v: int64(cfg.maxRecordBatchBytes), allowed: 512, badcmp: i64lt},
- {name: "max record batch bytes", v: int64(cfg.maxRecordBatchBytes), allowed: 268435454, badcmp: i64gt},
+ {name: "max record batch bytes", v: int64(cfg.maxRecordBatchBytes), allowed: 256 << 20, badcmp: i64gt},
// We do not want the broker write bytes to be less than the
// record batch bytes, nor the read bytes to be less than what
