nicoloboschi opened a new pull request #13169:
URL: https://github.com/apache/pulsar/pull/13169
### Motivation
The `rebalance` feature is currently exposed only to the REST api.
It can be useful to have this command in the Admin CLI because the rebalance
work is performed only by leader of Functions workers so the client needs to
eventually follow redirects and the user may not be aware.
The Admin CLI follow the redirect under the hood
### Modifications
* Added a new command `bin/pulsar-admin functions-worker rebalance` (no
parameters needed)
* Added a unit test to verify the REST api is triggered
Notes:
* the user doesn't need to specify the functions worker leader
* it works with and without enabling authentication
### Does this pull request potentially affect one of the following parts:
- The admin cli options: (yes) -> new command
### 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]