lhotari opened a new pull request, #22589: URL: https://github.com/apache/pulsar/pull/22589
### Motivation There doesn't seem to be a proper handling for TopicPoliciesService shutdown. This would be needed to allow the Pulsar broker to shutdown gracefully. This also prevents memory leaks in tests. This problem was detected during the investigation of test OOMEs. See #22588 for details. ### Modifications - Add close method to TopicPoliciesService and implement it - Use Pulsar's executor for the AsyncLoader in TopicPoliciesService - make shutdown synchronous - Improve the close method of SystemTopicTxnBufferSnapshotService ### Documentation <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> - [ ] `doc` <!-- Your PR contains doc changes. --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [x] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> -- 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]
