Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat kafka-config: Better errors for kafka outdated configurations #857

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

pprettysimpple
Copy link

This request adds some warnings for usage of old name in producer config. Also, it throws exception for invalid usage, related to configuration migration.

@pprettysimpple
Copy link
Author

Issue #856

@@ -155,8 +155,19 @@ ProducerConfiguration Parse(const yaml_config::YamlConfig& config, formats::pars
producer.security = config.As<SecurityConfiguration>();
producer.rd_kafka_options = config["rd_kafka_custom_options"].As<RdKafkaOptions>({});
producer.delivery_timeout = config["delivery_timeout"].As<std::chrono::milliseconds>(producer.delivery_timeout);
producer.queue_buffering_max =
config["queue_buffering_max"].As<std::chrono::milliseconds>(producer.queue_buffering_max);
// Handle gradual transition of renaming, done in versions 2.3 -> 2.4
Copy link
Member

Choose a reason for hiding this comment

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

I am not sure this makes a lot of sense, because currently we have version 2.7 and your changes would be committed only in 2.8(

Copy link
Member

Choose a reason for hiding this comment

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

Sorry for that API break, but it can not be undone

Copy link
Member

Choose a reason for hiding this comment

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

Only force config validation can protect against such API-break changes

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