junrao commented on a change in pull request #8479: URL: https://github.com/apache/kafka/pull/8479#discussion_r445234702
########## File path: core/src/main/scala/kafka/server/ReplicaManager.scala ########## @@ -1556,6 +1557,11 @@ class ReplicaManager(val config: KafkaConfig, error(s"Error while making broker the follower for partition $partition with leader " + s"$newLeaderBrokerId in dir $dirOpt", e) responseMap.put(partition.topicPartition, Errors.KAFKA_STORAGE_ERROR) + case e: ZooKeeperClientException => Review comment: It's probably better to do this in Partition.makeFollower() instead of here. That way, we only skip partitions that have incurred ZK error. Also, the same ZK exception can happen in Partition.makeLeader(). So, we want to do the same thing there as well. ---------------------------------------------------------------- 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