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 2019/09/13 00:11:49 UTC

[GitHub] [pulsar] merlimat opened a new pull request #5188: Ensure getting list of topics for namespace is handled asynchronously

merlimat opened a new pull request #5188: Ensure getting list of topics for namespace is handled asynchronously
URL: https://github.com/apache/pulsar/pull/5188
 
 
   ### Motivation
   
   The handler for the `GetTopicsOfNamespace` on broker side is processing the request in sync mode. This is used when periodically fetching the list of topics from regex consumers. 
   
   Most of the time this is not an issue since the list of topics is locally cached in the zk children cache. Though when there is an eviction (eg. we discard all cached entries after 5mins), we're forced to do a blocking call.
   
   This call will block the IO thread for extended amount of time, impacting other topics as well.
   
   There must be no potentially blocking calls made from IO threads.

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


With regards,
Apache Git Services