Skip to content

Commit

Permalink
[FLINK-24119][Connector/Kafka] Set offsets.topic.replication.factor t…
Browse files Browse the repository at this point in the history
…o 1. This closes apache#21190

Confluent's documentation on default configurations states that this setting should be applied for a single container environment. This should help with the test stability of FLINK-24119
  • Loading branch information
mas-chen authored Oct 31, 2022
1 parent cd98b80 commit f73189d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,10 @@ public static KafkaContainer createKafkaContainer(
return new KafkaContainer(DockerImageName.parse(dockerImageVersion))
.withEnv("KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR", "1")
.withEnv("KAFKA_TRANSACTION_STATE_LOG_MIN_ISR", "1")
.withEnv("KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR", "1")
.withEnv("KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE", "false")
.withEnv("KAFKA_LOG4J_ROOT_LOGLEVEL", logLevel)
.withEnv("KAFKA_LOG4J_LOGGERS", "state.change.logger=" + logLevel)
.withEnv("KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR", "1")
.withEnv("KAFKA_TRANSACTION_STATE_LOG_MIN_ISR", "1")
.withEnv("KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE", "false")
.withEnv(
"KAFKA_TRANSACTION_MAX_TIMEOUT_MS",
Expand Down

0 comments on commit f73189d

Please sign in to comment.