bozhao12 commented on a change in pull request #11942: URL: https://github.com/apache/kafka/pull/11942#discussion_r835142708
########## File path: core/src/main/scala/kafka/server/ReplicaManager.scala ########## @@ -1046,7 +1049,9 @@ class ReplicaManager(val config: KafkaConfig, // 3) has enough data to respond // 4) some error happens while reading data // 5) we found a diverging epoch - if (timeout <= 0 || fetchInfos.isEmpty || bytesReadable >= fetchMinBytes || errorReadingData || hasDivergingEpoch) { + // 6) the preferred read replica not local replica Review comment: Following your suggestion, I modified the unit test I also found some problems when modifying the unit test, which I think are bugs -- 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