mirror of
https://github.com/apache/kafka.git
synced 2026-10-28 08:24:58 +08:00
Adds a config/streams.properties template with sections and comments, similar to the other properties files shipped with Kafka. Same idea as KAFKA-19574, which did this for the producer and consumer configs. Based on #21308 by @mshijin-ksolves, which stalled after review, and picks up @ezhou413's review comments from there. Changes from that PR: - Commented out `default.key.serde` / `default.value.serde` (they have no default) and listed valid values instead - Removed the `<>` around `bootstrap.servers` - Noted that `commit.interval.ms` defaults to 100 under `exactly_once_v2` (otherwise 30000) - Used `statestore.cache.max.bytes` instead of the deprecated `cache.max.bytes.buffering` - Listed the valid `topology.optimization` values - Fixed the serde class name to `Serdes$StringSerde` Also adds a test that validates the file against StreamsConfig so it can't drift out of sync. Reviewers: Evan Zhou <ezhou@confluent.io>, Bill Bejeck <bbejeck@apache.org>