rajinisivaram commented on a change in pull request #8979: URL: https://github.com/apache/kafka/pull/8979#discussion_r454320535
########## File path: core/src/main/scala/kafka/server/DelayedFetch.scala ########## @@ -121,8 +120,8 @@ class DelayedFetch(delayMs: Long, } } } catch { - case _: NotLeaderForPartitionException => // Case A - debug(s"Broker is no longer the leader of $topicPartition, satisfy $fetchMetadata immediately") + case _: NotLeaderOrFollowerException => // Case A + debug(s"Broker is no longer the leader or follower of $topicPartition, satisfy $fetchMetadata immediately") return forceComplete() case _: ReplicaNotAvailableException => // Case B Review comment: yes, 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org