-
Notifications
You must be signed in to change notification settings - Fork 3.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
[improve][cli] pulsar-perf: refactor to reduce code duplication #19279
Conversation
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.
+1
@nicoloboschi PTAL
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.
Good work @pgier !
closing and re-opening to run CI with latest changes from master. |
3f01ce1
to
6fb9cc8
Compare
Rebased on latest master to re-run CI. |
6fb9cc8
to
44f676d
Compare
Rebased on latest master again |
The pr had no activity for 30 days, mark with Stale label. |
fa77970
to
ceeb6d6
Compare
* reduce code duplication between perf clients * move common topic args and validation into new class PerformanceTopicListArguments * improve CLI arg validation * deprecate inconsistent args Signed-off-by: Paul Gier <paul.gier@datastax.com>
ceeb6d6
to
3e52d72
Compare
/pulsarbot rerun-failure-checks |
Motivation
Some of the code in the pulsar-perf command line tools seems to be unnecessarily repetitive.
Modifications
This removes some code duplication in the pulsar-perf utilities by pushing the common CLI parsing logic up into the shared
PerformanceBaseArguments
class. This also deprecates some inconsistent CLI arg naming, and make some improvements to the CLI arg validation.Verifying this change
This change is already covered by existing tests, such as the pulsar-perf tests.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: pgier#8