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

KAFKA-17488: Cleanup (test) code for Kafka Streams "metric version" #17182

Merged

Conversation

fonsdant
Copy link
Contributor

@fonsdant fonsdant commented Sep 12, 2024

We note that StreamsMetricsImpl is created with the default value Version.LATEST and only use builtInMetricsVersion to pass it to Objects.requireNonNull. So I have removed builtInMetricsVersion from StreamsMetricsImpl as well as removed BUILT_IN_METRICS_VERSION_CONFIG and BUILT_IN_METRICS_VERSION_DOC since they became unused.

I have based this work on KIP-444 and KIP-743.

@fonsdant
Copy link
Contributor Author

Hi, @mjsax! Could you review it? :)

@mjsax mjsax added the streams label Sep 12, 2024
Copy link
Member

@mjsax mjsax left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Made a pass.

@fonsdant fonsdant force-pushed the cleanup-code-for-kafka-streams-metric-version branch from 9e59c9a to c9c47dd Compare September 18, 2024 16:24
@fonsdant fonsdant requested a review from mjsax September 18, 2024 16:31
@mjsax
Copy link
Member

mjsax commented Sep 26, 2024

Thanks for the update. Overall LGTM -- one more minor question.

@fonsdant
Copy link
Contributor Author

Accidentally, I must have reverted the removal of the builtInMetricsVersion passing argument to StreamsMetricsImpl in TopologyTestDriver, which has caused the build to fail. The last commit fixed it.

Also, I have removed the others builtInMetricsVersion values ​​that had not already been removed.

@mjsax mjsax merged commit 27a3c75 into apache:trunk Sep 27, 2024
7 of 9 checks passed
@mjsax
Copy link
Member

mjsax commented Sep 27, 2024

Thanks for the PR @fonsdant! Merged to trunk.

bbejeck pushed a commit to bbejeck/kafka that referenced this pull request Sep 28, 2024
…pache#17182)

This PR simply StreamsMetricsImpl to avoid passing in the unused "metric version" parameter.

Reviewers: Matthias J. Sax <matthias@confluent.io>
airlock-confluentinc bot pushed a commit to confluentinc/kafka that referenced this pull request Sep 30, 2024
…pache#17182)

This PR simply StreamsMetricsImpl to avoid passing in the unused "metric version" parameter.

Reviewers: Matthias J. Sax <matthias@confluent.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants