lhotari commented on code in PR #25293: URL: https://github.com/apache/pulsar/pull/25293#discussion_r2940844164
########## pulsar-broker/src/main/java/org/apache/pulsar/utils/SimpleCache.java: ########## Review Comment: > ConcurrentHashMap also uses `synchronized` to guarantee thread safety, right? No, it's very different. Some explanation in the [Javadoc of ConcurrentHashMap](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/concurrent/ConcurrentHashMap.html). `get` operations rarely block and modification operations won't be locked on a global lock. -- 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]
