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 try 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to