yuruguo opened a new issue #11983:
URL: https://github.com/apache/pulsar/issues/11983


   **Is your enhancement request related to a problem? Please describe.**
   When I execute `pulsar-perf` to simulate the test, I found that the task can 
be started normally after some options are set to unreasonable values, but 
there is no instance running, which leads to a waste of resources.
   In fact, when these unreasonable values appear, we should check to prevent 
the task from starting.
   _**case 1:**_
   `./bin/pulsar-perf consume --num-consumers -1 test`
   Task can be started but there is no consumption instance in subscription.
   **_case 2:_**
   `./bin/pulsar-perf produce --num-producers -1 test`
   Task can be started but there is no production instance.
   
   **Describe the solution you'd like**
   Provide a `IParameterValidator.class` for these option, perform necessary 
parameter checks before the task starts and exit directly after hitting.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to