showuon commented on code in PR #15015:
URL: https://github.com/apache/kafka/pull/15015#discussion_r1429855974


##########
core/src/main/scala/kafka/server/DelayedRemoteFetch.scala:
##########
@@ -41,6 +41,10 @@ class DelayedRemoteFetch(remoteFetchTask: Future[Void],
                          responseCallback: Seq[(TopicIdPartition, 
FetchPartitionData)] => Unit)
   extends DelayedOperation(fetchParams.maxWaitMs) {
 
+  if (fetchParams.isFromFollower) {
+    warn(s"The follower should not invoke remote fetch. Fetch params are: 
$fetchParams")

Review Comment:
   Yes, agree. Let me update the PR.
   



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