-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Sets ConfigEntry.Default flag in addition to the ConfigEntry.Source for Kafka versions > V1_1_0_0 #1594
Sets ConfigEntry.Default flag in addition to the ConfigEntry.Source for Kafka versions > V1_1_0_0 #1594
Conversation
… DescribeConfig This breaks the output of ListTopics for newer request versions, it now includes default configuration settings.
Clients can now rely on the `Default` flag again and don't have to check the `Source` for higher Kafka versions.
51ba5d7
to
1b5e305
Compare
@sladkoff you might have to sign CLA. |
@varun06 yeah, I did that already... the check is still in a failed state and I can not re-submit the CLA form because it says that I already signed it... Can you help with that? Maybe reset something? |
I've re-run the CLA check, it's OK now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sladkoff LGTM, but please add some tests before we can merge this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will like to see some tests around this change please.
Just letting you know that I've added some tests. Are we good here? |
…or Kafka versions > V1_1_0_0 (IBM#1594) * Set describeConfigsRequest.Version in ListTopics for consistency with DescribeConfig This breaks the output of ListTopics for newer request versions, it now includes default configuration settings. * Set ConfigEntry.Default for KafkaVersions > 0 Clients can now rely on the `Default` flag again and don't have to check the `Source` for higher Kafka versions. * Set ConfigEntry.Source to default for KafkaVersions <= 0 when applicable * Add tests for default flag/source
We were relying on the
ConfigEntry.Default
field to filter out any default config settings when usingadmin.DescribeConfig()
.After updating to the most recent version of sarama, this flag is always set to
false
with Kafka versions >V1_1_0_0
.We found out that we can now use the
ConfigEntry.Source
to check for defaults. I don't know it was intended change to "break" theConfigEntry.Default
in higher versions - let me know.This change sets the
ConfigEntry.Default
flag in addition to theConfigEntry.Source
for Kafka versions >V1_1_0_0
.I haven't written any tests yet as I'm not familiar with the code base. I can add some later.