ijuma commented on code in PR #19316:
URL: https://github.com/apache/kafka/pull/19316#discussion_r2021661151


##########
core/src/main/scala/kafka/server/ReplicaFetcherThread.scala:
##########
@@ -161,15 +157,6 @@ class ReplicaFetcherThread(name: String,
     }
   }
 
-  private def maybeWarnIfOversizedRecords(records: MemoryRecords, 
topicPartition: TopicPartition): Unit = {
-    // oversized messages don't cause replication to fail from fetch request 
version 3 (KIP-74)
-    if (metadataVersionSupplier().fetchRequestVersion <= 2 && 
records.sizeInBytes > 0 && records.validBytes <= 0)

Review Comment:
   I also updated the PR description.



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

Reply via email to