poorbarcode opened a new pull request, #19532:
URL: https://github.com/apache/pulsar/pull/19532

   ### Motivation
   
   see https://github.com/apache/pulsar/pull/19505#discussion_r1107373967
   
   `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 the cache of`PulsarServiceNameResolver` refreshes, it will create a 
new `PulsarServiceNameResolver` instance, which will break the logic "if the 
previous service name can not work, use `{previous index} + 1`"
   
   ### Modifications
   
   Make the service name resolver cache of PulsarWebResource expire after access
   
   ### 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/69
   


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