jsancio commented on code in PR #17500:
URL: https://github.com/apache/kafka/pull/17500#discussion_r1873873925


##########
core/src/test/scala/kafka/raft/KafkaMetadataLogTest.scala:
##########
@@ -206,7 +217,7 @@ final class KafkaMetadataLogTest {
     val snapshotId = new OffsetAndEpoch(numberOfRecords-4, epoch)
     val log = buildMetadataLog(tempDir, mockTime)
 
-    append(log, numberOfRecords, epoch)
+    1 to numberOfRecords foreach(_ => append(log, 1, epoch))

Review Comment:
   I have noticed that in Kafka we trying to avoid this Scala syntax. How about
   ```scala
       (1 to numberOfRecords).foreach(_ => append(log, 1, epoch))
   ```



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

Reply via email to