-
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
KAFKA-14812: ProducerPerformance still counting successful sending in … #13404
Conversation
About issues in #13348 , my solution is: remove the use of the iteration variable of stats from the main thread, the read and write it completely by the callback of a separate producer thread, so that the previous problems will not occur. According to the test case given by @robobario, I Tried it several times and it seems to be ok. Thank you for reviewing again, thank you. @showuon @chia7712 |
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.
@hudeqi thanks for updating the solution. one small comment left. PTAL
tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java
Outdated
Show resolved
Hide resolved
@robobario please take a look if you have free cycle. |
LGTM. If you expose the internals of
|
…console when sending failed
Thank you both for your valuable comments! I have added optimization. @chia7712 @robobario |
Do you have any suggestions here? @showuon |
tests pass. will merge it later |
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
When using ProducerPerformance, I found that when the sending fails, it is still counted as successfully sent by stat and the metrics are printed in console. For example, when there is no write permission and cannot be written in, the sending success rate is still magically displayed.
absolute jira