kamalcph commented on code in PR #20721:
URL: https://github.com/apache/kafka/pull/20721#discussion_r2449353555
##########
core/src/main/scala/kafka/server/ReplicaManager.scala:
##########
@@ -1644,10 +1644,13 @@ class ReplicaManager(val config: KafkaConfig,
val remoteFetchTasks = new util.HashMap[TopicIdPartition, Future[Void]]
val remoteFetchResults = new util.HashMap[TopicIdPartition,
CompletableFuture[RemoteLogReadResult]]
- remoteFetchInfos.forEach { (topicIdPartition, remoteFetchInfo) =>
+ // Hook to enable / disable multi-partition remote fetch feature.
+ val isMultiPartitionFetchEnabled = true
+ remoteFetchInfos.asScala.forall { case (topicIdPartition, remoteFetchInfo)
=>
val (task, result) = processRemoteFetch(remoteFetchInfo)
remoteFetchTasks.put(topicIdPartition, task)
remoteFetchResults.put(topicIdPartition, result)
+ isMultiPartitionFetchEnabled
Review Comment:
ack, removed the change.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]