Skip to content

KAFKA-15853: [2/N] Move bulk of remaining configs to AbstractKafkaConfig#21943

Open
clolov wants to merge 1 commit intoapache:trunkfrom
clolov:kafka-15853-2
Open

KAFKA-15853: [2/N] Move bulk of remaining configs to AbstractKafkaConfig#21943
clolov wants to merge 1 commit intoapache:trunkfrom
clolov:kafka-15853-2

Conversation

@clolov
Copy link
Copy Markdown
Contributor

@clolov clolov commented Apr 2, 2026

This PR moves the bulk of remaining KafkaConfig configs from Scala to
Java.

@github-actions github-actions bot added triage PRs from the community core Kafka Broker clients labels Apr 2, 2026
public class AbstractConfig {

private static final Logger log = LoggerFactory.getLogger(AbstractConfig.class);
public static final Logger log = LoggerFactory.getLogger(AbstractConfig.class);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

consider protected instead of public, or a dedicated logger in AbstractKafkaConfig, to avoid expanding AbstractConfig’s public surface.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fair suggestion, we only need this up until we get rid of the configurations which trigger the warnings, but I will swap it to protected

// ********* Group Coordinator Configuration **********

@SuppressWarnings("removal")
public Set<GroupType> groupCoordinatorRebalanceProtocols() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Moving groupCoordinatorRebalanceProtocols from a Scala val to a Java method re-runs validation/log.warn on every access—consider caching to match one-time init behavior.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Also a fair suggestion!

@github-actions github-actions bot removed the triage PRs from the community label Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clients core Kafka Broker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants