-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
MINOR: Clean up streams metric sensors #9696
Conversation
Is there any reason to change it to the same logic? |
@highluck I am sorry that we change the code you authored, but over time during multiple reviews of this class, we realized that checking the sensor for |
Could we give a help method to handle similar code? |
...s/src/main/java/org/apache/kafka/streams/processor/internals/metrics/StreamsMetricsImpl.java
Outdated
Show resolved
Hide resolved
That might be possible for all but client-level sensors. I think that is a good idea. @lct45 could you try to extract a method for all but client-level sensors? |
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.
@lct45 Thanks for your patch. LGTM!
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.
Thank @lct45 for the update!
I left one comment.
Could you rebase this PR to trunk? All tests failed for an issue that was recently resolved on trunk.
...s/src/main/java/org/apache/kafka/streams/processor/internals/metrics/StreamsMetricsImpl.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.
LGTM! Thanks!
Just two minor comments
...s/src/main/java/org/apache/kafka/streams/processor/internals/metrics/StreamsMetricsImpl.java
Outdated
Show resolved
Hide resolved
...s/src/main/java/org/apache/kafka/streams/processor/internals/metrics/StreamsMetricsImpl.java
Outdated
Show resolved
Hide resolved
@cadonna |
Unrelated test failure of a known flaky test @chia7712 Could you merge this PR? |
@lct45 Thanks for your patch. Merge it to trunk! |
Follow-up from #9614, updates streams metrics sensor logic