bdbyrne commented on a change in pull request #9022:
URL: https://github.com/apache/kafka/pull/9022#discussion_r454598952



##########
File path: 
core/src/test/scala/unit/kafka/admin/TopicCommandWithAdminClientTest.scala
##########
@@ -672,11 +677,9 @@ class TopicCommandWithAdminClientTest extends 
KafkaServerTestHarness with Loggin
     adminClient.createTopics(
       Collections.singletonList(new NewTopic(testTopicName, partitions, 
replicationFactor).configs(configMap))).all().get()
     waitForTopicCreated(testTopicName)
-    TestUtils.generateAndProduceMessages(servers, testTopicName, numMessages = 
10, acks = -1)
+    TestUtils.generateAndProduceMessages(servers, testTopicName, numMessages = 
1000, acks = -1)

Review comment:
       Done.

##########
File path: 
core/src/test/scala/unit/kafka/admin/TopicCommandWithAdminClientTest.scala
##########
@@ -672,11 +677,9 @@ class TopicCommandWithAdminClientTest extends 
KafkaServerTestHarness with Loggin
     adminClient.createTopics(
       Collections.singletonList(new NewTopic(testTopicName, partitions, 
replicationFactor).configs(configMap))).all().get()
     waitForTopicCreated(testTopicName)
-    TestUtils.generateAndProduceMessages(servers, testTopicName, numMessages = 
10, acks = -1)
+    TestUtils.generateAndProduceMessages(servers, testTopicName, numMessages = 
1000, acks = -1)

Review comment:
       So each message creates its own `ProducerRecord`, I was under the 
assumption that the limit to fetch expands to a single record, and not the 
batch itself. Or am I misunderstanding?

##########
File path: 
core/src/test/scala/unit/kafka/admin/TopicCommandWithAdminClientTest.scala
##########
@@ -672,11 +677,9 @@ class TopicCommandWithAdminClientTest extends 
KafkaServerTestHarness with Loggin
     adminClient.createTopics(
       Collections.singletonList(new NewTopic(testTopicName, partitions, 
replicationFactor).configs(configMap))).all().get()
     waitForTopicCreated(testTopicName)
-    TestUtils.generateAndProduceMessages(servers, testTopicName, numMessages = 
10, acks = -1)
+    TestUtils.generateAndProduceMessages(servers, testTopicName, numMessages = 
1000, acks = -1)
 
     val brokerIds = servers.map(_.config.brokerId)
-    TestUtils.setReplicationThrottleForPartitions(adminClient, brokerIds, 
Set(tp), throttleBytes = 1)

Review comment:
       Added back, but to clarify - are you suggesting the high watermark could 
still be at 0 (or relatively low) even after producing the messages? Or just 
that both combined are a more effective throttle, essentially putting it at 1 
record/sec?




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


Reply via email to