KAFKA-4265; Run replication quotas test with producer acks=1

Test expects all records to be published successfully, which cannot be guaranteed with acks=0 since failures are not retried.

Author: Rajini Sivaram <rajinisivaram@googlemail.com>

Reviewers: Ben Stopford <benstopford@gmail.com>, Ismael Juma <ismael@juma.me.uk>

Closes #1991 from rajinisivaram/KAFKA-4265
This commit is contained in:
Rajini Sivaram 2016-10-08 12:22:34 +01:00 committed by Ismael Juma
parent 6b91f83fba
commit 44d18d273c
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class ReplicationQuotasTest extends ZooKeeperTestHarness {
changeTopicConfig(zkUtils, topic, propsWith(FollowerReplicationThrottledReplicasProp, "0:106,1:106,2:106,3:107,4:107,5:107"))
//Add data equally to each partition
producer = createNewProducer(getBrokerListStrFromServers(brokers), retries = 5, acks = 0)
producer = createNewProducer(getBrokerListStrFromServers(brokers), retries = 5, acks = 1)
(0 until msgCount).foreach { x =>
(0 to 7).foreach { partition =>
producer.send(new ProducerRecord(topic, partition, null, msg))