kirktrue commented on code in PR #14359: URL: https://github.com/apache/kafka/pull/14359#discussion_r1326504231
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractFetch.java: ########## @@ -421,14 +309,45 @@ Node selectReadReplica(final TopicPartition partition, final Node leaderReplica, " using the leader instead.", nodeId, partition); // Note that this condition may happen due to stale metadata, so we clear preferred replica and // refresh metadata. - requestMetadataUpdate(partition); + requestMetadataUpdate(metadata, subscriptions, partition); return leaderReplica; } } else { return leaderReplica; } } + protected Map<Node, FetchSessionHandler.FetchRequestData> prepareCloseFetchSessionRequests() { Review Comment: Done -- 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