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

[Bug] PerformanceReader needs one more message than numMessages #17823

Closed
2 tasks done
andrasbeni opened this issue Sep 23, 2022 · 1 comment · Fixed by #17826
Closed
2 tasks done

[Bug] PerformanceReader needs one more message than numMessages #17823

andrasbeni opened this issue Sep 23, 2022 · 1 comment · Fixed by #17826
Assignees
Labels
type/bug The PR fixed a bug or issue reported a bug

Comments

@andrasbeni
Copy link
Contributor

Search before asking

  • I searched in the issues and found nothing similar.

Version

master; hash: 08df28a

Minimal reproduce step

Start bin/pulsar-perf read -u pulsar://localhost:6650 -n 100 topic.
Run bin/pulsar-perf produce -u pulsar://localhost:6650 -m 100 topic in parallel.

What did you expect to see?

pulsar-perf read quits and prints its statistics soon after the producer process finishes.

What did you see instead?

pulsar-perf read indefinitely waits for the next message

Anything else?

The ReaderListener increments the counter after checking the limit. Changing the order of the two solves the problem.

Are you willing to submit a PR?

  • I'm willing to submit a PR!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
2 participants