Hi community: In the past few days, when investigating the problem of pulsar close being hung, I saw that many resources are called synchronously and have no timeout when they are closed. To solve this problem, patch-15638 <https://github.com/apache/pulsar/pull/15638>, add the async close method and timeout. patch-15680 <https://github.com/apache/pulsar/pull/15680>, uniformly increase the timeout in the pulsar close method. patch-15777 <https://github.com/apache/pulsar/pull/15777>, add timeout in the close method. However, neither increasing the async interface nor the timeout is guaranteed to shut down the pulsar service within `brokerShutdownTimeoutMs`.
In order to ensure the uniformity of resource closure, I hope to discuss with you a relatively reasonable solution. Regards Jiwei Guo (Tboy)