hachikuji commented on code in PR #15323:
URL: https://github.com/apache/kafka/pull/15323#discussion_r1488286776


##########
clients/src/main/java/org/apache/kafka/clients/Metadata.java:
##########
@@ -124,14 +124,14 @@ public Metadata(long refreshBackoffMs,
      * Get the current cluster info without blocking
      */
     public synchronized Cluster fetch() {
-        return cache.cluster();
+        return metadataSnapshot.cluster();

Review Comment:
   We could drop synchronization here as well.



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to