315157973 opened a new pull request #14114:
URL: https://github.com/apache/pulsar/pull/14114


   ### Motivation
   Now the following problems exist when the broker is closing:
   1. When there are many topics on the Broker that is being closed, there will 
be a large number of concurrent lookup requests, which will eventually cause 
the Lookup to time out.
   2. When `broker.close()` is running, it directly sets the Topic state to 
terminated without waiting for the client connection to be closed, resulting in 
an exception on the client side and obvious perception.
   
   ### Modifications
   1. Add a REST API for graceful shutdown
   2. The rate of unload per second can be controlled in the API
   3. When closing the broker, we can wait for the client connection to close, 
thereby making the broker switching smoother
   
   ### Documentation
   - [ x ] `no-need-doc` 
   
   
   
   


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