Skip to content

[fix][cli] Check numMessages after incrementing counter - #17826

Merged
codelipenghui merged 1 commit into
apache:masterfrom
andrasbeni:17823
Sep 29, 2022
Merged

[fix][cli] Check numMessages after incrementing counter #17826
codelipenghui merged 1 commit into
apache:masterfrom
andrasbeni:17823

Conversation

@andrasbeni

@andrasbeni andrasbeni commented Sep 23, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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