merlimat opened a new pull request #8273:
URL: https://github.com/apache/pulsar/pull/8273
### Motivation
When the broker is starting up, it might start getting lookup requests
before all the components of the service are fully initialized. In this
particular case a lookup will fail on NPE because the leader election service
is not ready yet (it gets instantiated after the broker service).
This NPE causes a series of rippling effects:
* The future for the request hitting NPE are not completed
* They stay stale in the `findingBundlesNotAuthoritative` cache map forever
* All other lookup requests are piggy-backing on the first futures (but
these will not complete)
* We reach the max number of pending lookup requests, after which the
broker rejects new lookup
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]