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

Add properties that are returned from topic describe config to noop list #4313

Merged
merged 2 commits into from
Apr 18, 2022

Conversation

ZeDRoman
Copy link
Contributor

@ZeDRoman ZeDRoman commented Apr 18, 2022

Cover letter

Fixes #4310

Release notes

Accept partition_count, replication_factor and redpanda.datapolicy in alter config handler

Add properties that are returned from topic describe config to noop list
Comment on lines +65 to +69
"partition_count",
"replication_factor",
// Invalid name from describe
"redpanda.datapolicy",

Copy link
Member

Choose a reason for hiding this comment

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

Note: I think it should be fine for now but having a way to annotate the scope of each property would be nice to have just to make this better in the future.

Copy link
Contributor

Choose a reason for hiding this comment

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

we can also make this a ctre ... something like this https://godbolt.org/z/5PcbEWz8s

Comment on lines +75 to +78
topic = self.topics[0].name
kafka_tools = KafkaCliTools(self.redpanda)
topic_config = kafka_tools.describe_topic_config(topic=topic)
self.client().alter_topic_configs(topic, topic_config)
Copy link
Member

Choose a reason for hiding this comment

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

Nice! this should help to catch this kind of issues in the future.

Copy link
Member

@esteban esteban left a comment

Choose a reason for hiding this comment

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

+1 lgtm. Maybe we should follow up with some improvements in how the configurations are annotated.

@graphcareful graphcareful self-requested a review April 18, 2022 22:44
@ZeDRoman ZeDRoman merged commit 979a8e2 into redpanda-data:dev Apr 18, 2022
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InvalidConfigurationException when setting confs back to Redpanda
4 participants