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

   ### Motivation
   
   - Fixes issue where leader broker information isn't available and this 
warning gets logged:
     `WARN  org.apache.pulsar.broker.namespace.NamespaceService - The 
information about the current leader broker wasn't available. Handling load 
manager decisions in a decentralized way.`
   
   ### Modifications
   
   - use `LeaderElectionService`'s `readCurrentLeader` method instead of 
`getCurrentLeader` method. This ensures that the leader broker information is 
refreshed if it happens to be missing. 
   - refactor existing code so that the asynchronous `readCurrentLeader` method 
can be used.


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