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 2017/12/20 02:24:39 UTC

[GitHub] rdhabalia opened a new pull request #990: Add timeout for bundle unloading

rdhabalia opened a new pull request #990: Add timeout for bundle unloading
URL: https://github.com/apache/incubator-pulsar/pull/990
 
 
   ### Motivation
   
   When broker is shutting down, it tries to unload bundles sequentially and it unloads all topics under that bundle concurrently. However, sometimes if unloading of one of the topic gets stuck then bundle unloading all get stuck and broker can't gracefully complete unloading of rest of the bundles which requires all the bundles to be recovered by next broker.
   ```
   06:22:43.522 [shutdown-thread-96-1] INFO  o.a.p.broker.service.BrokerService   - Shutting down Pulsar Broker service
   :
   06:27:43.430 [Thread-1] WARN  o.a.p.b.MessagingServiceShutdownHook - Graceful shutdown timeout expired. Closing now
   ```
   - Therefore, unloading bundle should have a time so, unload bundle thread doesn't get stuck
   - and find out root cause of why topic unloading gets stuck
   
   
   ### Modifications
   
   Add timeout for bundle unloading
   
   ### Result
   
   unloading bundle thread will not be stuck forever if unloading bundle gets stuck.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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