yuruguo opened a new pull request #12512:
URL: https://github.com/apache/pulsar/pull/12512


   ### Motivation
   We should check the validity of the `option` in command `set-backlog-quota` 
/ `remove-backlog-quota` for namespace and give a more friendly prompt message 
when executing `./bin/pulsar-admin namespaces set-backlog-quota` / 
`./bin/pulsar-admin namespaces remove-backlog-quota`.
   - the `option` that need to be verified in the command `set-backlog-quota` 
include: `--limit`,`--type`
   - the `option` that need to be verified for the command 
`remove-backlog-quota` include: `--type`
   
   Currently, the lack of verification for above `option` will directly display 
the exception.
   
   ### Modifications
   - Throw `ParameterException` when `IllegalArgumentException` occurs when 
executing `validateSizeString()` / `BacklogQuota.BacklogQuotaType.valueOf()`
   
   ### Documentation
   - [x] `no-need-doc`
   


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