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

Fix printing of final metrics #2545

Merged
merged 1 commit into from
Aug 3, 2023
Merged

Conversation

prestona
Copy link
Member

@prestona prestona commented Aug 2, 2023

For short test runs kafka-producer-performance may not print any metrics at all. This is fixed by moving the final call to printMetrics just before closing the producer. Calling printMetrics after the producer is closed does nothing as the producer metrics are unregistered as part of the close.

For short test runs `kafka-producer-performance` may not print any
metrics at all. This is fixed by moving the final call to `printMetrics` just
before closing the producer. Calling `printMetrics` after the producer
is closed does nothing as the producer metrics are unregistered as part
of the close.

Signed-off-by: Adrian Preston <PRESTONA@uk.ibm.com>
Copy link
Collaborator

@hindessm hindessm left a comment

Choose a reason for hiding this comment

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

LGTM.

@hindessm hindessm added the fix label Aug 3, 2023
@dnwe dnwe merged commit 4cce955 into IBM:main Aug 3, 2023
12 checks passed
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.

3 participants