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][cli] Check numMessages after incrementing counter #17826

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

andrasbeni
Copy link
Contributor

@andrasbeni andrasbeni commented Sep 23, 2022

Fixes #17823

Motivation

If PerformanceReader can read exactly as many messages as specified by num-messages, it does not stop but waits for another message.

Modifications

Check the number of total messages after incrementing the counter.

Verifying this change

  • Make sure that the change passes the CI checks.

This change added tests and can be verified as follows:

  • Added integration tests for pulsar-perf read

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • Anything that affects deployment

Documentation

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    This is a bugfix

  • doc
    (Your PR contains doc changes)

  • doc-complete
    (Docs have been already added)

Matching PR in forked repository

PR in forked repository: andrasbeni#6

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Sep 23, 2022
@andrasbeni andrasbeni changed the title WIP [fix][cli] Check numMessages after incrementing counter [fix][cli] Check numMessages after incrementing counter Sep 27, 2022
@codelipenghui codelipenghui added this to the 2.12.0 milestone Sep 28, 2022
@andrasbeni
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] PerformanceReader needs one more message than numMessages
5 participants