315157973 opened a new pull request #10347: URL: https://github.com/apache/pulsar/pull/10347
Fixes #10229 ### Motivation `updateLocalBrokerData` will be called concurrently in the REST API `writeBrokerDataOnZooKeeper` will be called concurrently in REST API and Scheduled Task It is not enough to ensure the thread safety of APIs in LocalBrokerData. It is necessary to ensure the thread safety of multiple APIs in LocalBrokerData at the same time. So I added the lock to the two methods above. -- 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]
