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
[Issue 8340] [pulsar-testclient] Fix to support to specify topics and subscriptions #9716
Conversation
/pulsarbot run-failure-checks |
@codelipenghui Please help to take a review about this when you are available. |
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.
I appreciate this work, happy to see that
Please do not break compatibility with the previous signature.
We have scripts that are used to work with many different versions of pulsar (just by changing the docker image name).
IMHO in general it is fine to add new feature, but we should not change the behaviour if it is not strictly nececessary
@Parameter(description = "persistent://prop/ns/my-topic", required = true) | ||
public List<String> topic; | ||
@Parameter(description = "A list of topics to consume from (e.g. persistent://prop/ns/topic1 persistent://prop/ns/topic2)", required = true) | ||
public List<String> topics; |
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.
are we breaking compatibility with the old format ?
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.
Thanks for pointing this out, just keep the old format.
@@ -109,7 +108,7 @@ | |||
@Parameter(names = { "-s", "--size" }, description = "Message size (bytes)") | |||
public int msgSize = 1024; | |||
|
|||
@Parameter(names = { "-t", "--num-topic" }, description = "Number of topics") | |||
@Parameter(names = { "-t", "--num-topics" }, description = "Number of topics") |
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.
are we breaking compatibility with the previous version ?
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.
Done, use the previous version.
/pulsarbot run-failure-checks |
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.
Please avoid changing the document and the code with the same PR. Pulsar's document does not need to cherry-pick to the release branch and this may introduce some unnecessary work when we cherry-pick this to the target branch.
… subscriptions (#9716) ### Motivation Fixes #8340 ### Modifications - Fix option `main parameter` for CLI `pulsar-perf produce/consume/read` to specify multi topics. - Add option `--subscriptions` for CLI `pulsar-perf` consume to specify multi subscriptions. - Deprecate and hide the option `--subscriber-name`. - Modify the corresponding doc. (cherry picked from commit e137f26)
… subscriptions (apache#9716) ### Motivation Fixes apache#8340 ### Modifications - Fix option `main parameter` for CLI `pulsar-perf produce/consume/read` to specify multi topics. - Add option `--subscriptions` for CLI `pulsar-perf` consume to specify multi subscriptions. - Deprecate and hide the option `--subscriber-name`. - Modify the corresponding doc. (cherry picked from commit e137f26)
… subscriptions (apache#9716) ### Motivation Fixes apache#8340 ### Modifications - Fix option `main parameter` for CLI `pulsar-perf produce/consume/read` to specify multi topics. - Add option `--subscriptions` for CLI `pulsar-perf` consume to specify multi subscriptions. - Deprecate and hide the option `--subscriber-name`. - Modify the corresponding doc.
@zymap I left comments and you committed the patch anyway. This is not the right way to behave IMHO. Can you please revert this patch ? Otherwise I will be happy to send a patch that at least restores the auto-topic creation behaviour
should create 10 topics, now it does not work anymore
|
Currently, we don't have any tests that cover the test client, we'd better add tests to avoid the broken. |
@codelipenghui I agree. IMHO This is not about tests, it is about taking care of comments of the users in the community. In my experience in OSS projects, and especially in the ASF, Think about any other user/contributor that tries to comment and express his opinion on a change, but the owners of the project ignore his comments and go forward....... Please take this into consideration for the next time. The is no hurry in committing a patch in Apache projects, |
@eolivelli I am sorry for my mistake and the inconvenience. Also, it's a good idea to add some test case for this so we can keep the compatibility when creating PRs. |
@zymap no problem. I can send a patch on Monday. I also have other improvements for pulsar-perf to contribute as well ;) |
You have mentioned 2 points and the author has fixed them. I'm not sure why to make you feel we are not taking care of your comments. If some other places break the behavior, we'd better point out? Otherwise, other reviewers may not understand where the break is. |
@eolivelli I'm so sorry that I misunderstood your comment about the Both you and penghui are right about the behaviour. I think we can just fix this by adding an option to cover the compatibility. I can send a patch if you needed @eolivelli, sorry again about the mistake. |
@murong00 I appreciate that you are volunteering to follow up. Thank you very much. I really would like to see that same behaviour as before, otherwise the behaviour of the tool is different from one version to another and you cannot know which version of the tool you are using. So out-of-the-box it would be great that the behaviour does not change. I was going to start writing a patch in order to fallback to 2.7 mode in case you pass only one topic to the command. this way we are 100% compatible with previous behaviour and your new behaviour works as well The same is for I will be happy to test your patch |
@eolivelli Thanks for your tips, I will send a patch later to cover this. |
…pics and subscriptions (apache#9716)" This reverts commit f4a3f4a. (cherry picked from commit 8ea4a39)
Motivation
Fixes #8340
Modifications
main parameter
for CLIpulsar-perf produce/consume/read
to specify multi topics.--subscriptions
for CLIpulsar-perf
consume to specify multi subscriptions.--subscriber-name
.