Skip to content

replication factor shoudl be 3 by default#33

Open
tsuz wants to merge 1 commit into
mainfrom
fix/rf-3
Open

replication factor shoudl be 3 by default#33
tsuz wants to merge 1 commit into
mainfrom
fix/rf-3

Conversation

@tsuz
Copy link
Copy Markdown
Owner

@tsuz tsuz commented May 24, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Kafka topic pre-creation in the processing app so topic partition count and replication factor can be configured via environment variables, with replication factor defaulting to 3.

Changes:

  • Adds KAFKA_TOPIC_PARTITIONS and KAFKA_TOPIC_REPLICATION_FACTOR parsing in ensureTopicsExist.
  • Uses those values when constructing NewTopic instances for required source topics.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

int partitions = Integer.parseInt(
System.getenv().getOrDefault("KAFKA_TOPIC_PARTITIONS", "1"));
short replicationFactor = Short.parseShort(
System.getenv().getOrDefault("KAFKA_TOPIC_REPLICATION_FACTOR", "3"));
Comment on lines +153 to +155
System.getenv().getOrDefault("KAFKA_TOPIC_PARTITIONS", "1"));
short replicationFactor = Short.parseShort(
System.getenv().getOrDefault("KAFKA_TOPIC_REPLICATION_FACTOR", "3"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants