You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/10/15 18:20:49 UTC

[GitHub] [pulsar] merlimat opened a new pull request #8273: Fix stuck lookup operations when the broker is starting up

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:
users@infra.apache.org



[GitHub] [pulsar] jiazhai merged pull request #8273: Fix stuck lookup operations when the broker is starting up

Posted by GitBox <gi...@apache.org>.
jiazhai merged pull request #8273:
URL: https://github.com/apache/pulsar/pull/8273


   


----------------------------------------------------------------
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:
users@infra.apache.org