Hi Divij, Thanks for the KIP! I'm happy that best practices from applications using Kafka are being reflected in sane defaults, in particular the linger.ms change always seems to be the first step to tune a producer configuration. And it's following in the footsteps of Nagle's algorithm too :)
I had some thoughts about these changes, but I don't feel strongly enough about any of them to block this KIP: For the segment.ms, segment.bytes, and max.compaction.lag.ms configurations, do those minimums also make sense for test clusters? It may be desirable for a test cluster to roll segments as soon as possible to trigger compaction earlier and reduce overall test runtime. Perhaps there are downstream users who might make use of these extreme configuration values where they want to quickly test the behavior of their applications after compaction takes place. We currently don't have an ability to emit in-band "warnings" for configurations, only pass/fail validation; If we had such a mechanism, I think these constraints would be excellent candidates for "warnings" rather than hard-stops. Thanks, Greg On Tue, Nov 19, 2024 at 11:31 AM Jun Rao <j...@confluent.io.invalid> wrote: > Hi, Divij, > > Thanks for the KIP. > > For log.message.timestamp.after.max.ms, I agree that there seems to be no > good reason to set a future timestamp in a record. So, changing the default > to 1 hour makes sense. > > For log.message.timestamp.before.max.ms, a common usage is to use CDC to > extract records from a database to Kafka. During bootstrap, it's possible > for Kafka to get records with much older timestamps. Changing the defaults > will break those use cases. > > Jun > > > On Mon, Nov 18, 2024 at 2:15 AM Divij Vaidya <divijvaidy...@gmail.com> > wrote: > > > Hey folks > > > > With 4.0, we have an opportunity to reset the default values and add > > constraints in the configurations based on our learnings since 3.0. > > > > Here's a KIP which modifies defaults for some properties and modifies the > > constraints for a few others. > > > > > > > https://cwiki.apache.org/confluence/display/KAFKA/KIP-1030%3A+Change+constraints+and+default+values+for+various+configurations > > > > > > Looking forward for your feedback. > > > > (Previous discussion thread on this topic - > > https://lists.apache.org/thread/3dx9mdmsqf8pko9xdmhks80k96g650zp ) > > >