bozhao12 commented on code in PR #12007:
URL: https://github.com/apache/kafka/pull/12007#discussion_r844728993


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/SubscriptionState.java:
##########
@@ -617,7 +617,7 @@ public synchronized void 
updatePreferredReadReplica(TopicPartition tp, int prefe
      * Unset the preferred read replica. This causes the fetcher to go back to 
the leader for fetches.
      *
      * @param tp The topic partition
-     * @return true if the preferred read replica was set, false otherwise.
+     * @return the removed preferred read replica was set, None otherwise.

Review Comment:
   @showuon The code have updated.Thanks. 



-- 
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