Hi, I have this kafka streams code that tries to create some topics. It is running in Confluent Cloud and fails with the error PolicyViolation: topic replication factor must be 3.
These are topics the code tries to create because I am running a reduce operation and it tries to create a repartition topic on the state store.
spring.cloud.stream.kafka.streams.binder.configuration.replication.factor seems to be the right one (cf Spring Cloud Stream Kafka Binder Reference Guide) – not sure why Spring does not pick it up / forward it to Kafka Streams correctly. (Or does it? You can double check the logs – Kafka Streams logs the effective StreamsConfig.)
If you set it directly using StreamsConfig you don’t need the Spring prefix spring.cloud.stream.kafka.streams.binder.configuration… The prefix is only for Spring config files…