poorbarcode opened a new pull request, #19505:
URL: https://github.com/apache/pulsar/pull/19505
Fixes #17080
### Motivation
`PulsarServiceNameResolver` is used to randomly select a service name from
multiple service names, the logic is:
- select a random index of the service name list
- if the previous service name can not work, use `{previous index} + 1`
But when we call the method `PulsarWebResource.getRedirectionUrl`, it will
always create a new `PulsarServiceNameResolver` instance, this reduces the
above logic to only randomly select a service name.
### Modifications
But when we call the method `PulsarWebResource.getRedirectionUrl`, reuse the
same `PulsarServiceNameResolver` instance.
### Documentation
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
- [ ] `doc` <!-- Your PR contains doc changes. -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update
later -->
- [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->
### Matching PR in forked repository
PR in forked repository:
- https://github.com/poorbarcode/pulsar/pull/66
--
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]