-
Notifications
You must be signed in to change notification settings - Fork 14k
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
KAFKA-17488: Cleanup (test) code for Kafka Streams "metric version" #17182
Conversation
Hi, @mjsax! Could you review it? :) |
streams/src/main/java/org/apache/kafka/streams/StreamsConfig.java
Outdated
Show resolved
Hide resolved
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.
Thanks for the PR. Made a pass.
streams/src/main/java/org/apache/kafka/streams/StreamsConfig.java
Outdated
Show resolved
Hide resolved
streams/src/test/java/org/apache/kafka/streams/StreamsConfigTest.java
Outdated
Show resolved
Hide resolved
...a/org/apache/kafka/streams/kstream/internals/KStreamSessionWindowAggregateProcessorTest.java
Show resolved
Hide resolved
...c/test/java/org/apache/kafka/streams/processor/internals/metrics/StreamsMetricsImplTest.java
Show resolved
Hide resolved
9e59c9a
to
c9c47dd
Compare
streams/src/test/java/org/apache/kafka/streams/processor/internals/StreamTaskTest.java
Show resolved
Hide resolved
Thanks for the update. Overall LGTM -- one more minor question. |
Accidentally, I must have reverted the removal of the Also, I have removed the others |
Thanks for the PR @fonsdant! Merged to trunk. |
…pache#17182) This PR simply StreamsMetricsImpl to avoid passing in the unused "metric version" parameter. Reviewers: Matthias J. Sax <matthias@confluent.io>
…pache#17182) This PR simply StreamsMetricsImpl to avoid passing in the unused "metric version" parameter. Reviewers: Matthias J. Sax <matthias@confluent.io>
We note that
StreamsMetricsImpl
is created with the default valueVersion.LATEST
and only usebuiltInMetricsVersion
to pass it toObjects.requireNonNull
. So I have removedbuiltInMetricsVersion
fromStreamsMetricsImpl
as well as removedBUILT_IN_METRICS_VERSION_CONFIG
andBUILT_IN_METRICS_VERSION_DOC
since they became unused.I have based this work on KIP-444 and KIP-743.