Skip to content

feat: allow @BrokerConfig to override internal topic replication factors#634

Open
tombentley wants to merge 1 commit into
kroxylicious:mainfrom
tombentley:rf-fix
Open

feat: allow @BrokerConfig to override internal topic replication factors#634
tombentley wants to merge 1 commit into
kroxylicious:mainfrom
tombentley:rf-fix

Conversation

@tombentley

Copy link
Copy Markdown
Member

Type of change

  • Enhancement / new feature

Description

The hardcoded defaults for internal topic configs (offsets.topic, transaction.state.log, share.coordinator.state.topic replication factors) now use putIfAbsent, so @BrokerConfig annotations can override them. This enables tests that need replicated internal topics, such as coordinator change resilience tests that stop a broker and verify the coordinator re-elects.

Assisted-by: Claude Opus 4.6 (1M context) noreply@anthropic.com

@tombentley tombentley requested a review from a team as a code owner June 19, 2026 04:36
The hardcoded defaults for internal topic configs (offsets.topic,
transaction.state.log, share.coordinator.state.topic replication
factors) now use putIfAbsent, so @BrokerConfig annotations can
override them. This enables tests that need replicated internal
topics, such as coordinator change resilience tests that stop a
broker and verify the coordinator re-elects.

Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Tom Bentley <tbentley@redhat.com>
@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant