From 3b6984c15195b2e76de764ac50795d5b726c3454 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Thu, 11 Jan 2024 13:35:59 +0100 Subject: [PATCH] nixos/local-kafka: always configure replication factor documentation recommends changing `extraProperties`, which overrides the properties defined here, which makes Kafka complains that the replication factor can't be applied --- nixos/modules/phoebus/local-kafka.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/phoebus/local-kafka.nix b/nixos/modules/phoebus/local-kafka.nix index a206f76f..4c5193df 100644 --- a/nixos/modules/phoebus/local-kafka.nix +++ b/nixos/modules/phoebus/local-kafka.nix @@ -11,7 +11,7 @@ # TODO: document replication setup services.apache-kafka = { logDirs = lib.mkDefault ["/var/lib/apache-kafka"]; - extraProperties = lib.mkDefault '' + extraProperties = '' offsets.topic.replication.factor=1 transaction.state.log.replication.factor=1 transaction.state.log.min.isr=1