315157973 opened a new pull request #9900: URL: https://github.com/apache/pulsar/pull/9900
### Motivation Now that the modification of Namespace Policies is not locked, multiple threads may modify the same local Policies object at the same time, which may cause thread safety issues. The Policies object also contains non-thread-safe collections such as HashMap and HashSet. Concurrent operations on these objects also have thread-safety issues. Zookeeper's version can only guarantee that updates between different Brokers are safe. ### Modifications `OrderedExecutor` is used to ensure that all modification operations under each namespace are in a single thread. Different namespaces can be operated in parallel due to different objects. ### Verifying this change ---------------------------------------------------------------- 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: [email protected]
