mirror of https://github.com/apache/kafka.git
KAFKA-8086: Use 1 partition for offset topic when possible (#7356)
I realized some flaky tests failed at setup or calls that tries to create offset topics, and I think using one partition and one replica would be sufficient in these cases. Reviewers: Bill Bejeck <bill@confluent.io>
This commit is contained in:
parent
e98e239a0c
commit
b4035610b8
|
|
@ -132,6 +132,7 @@ class AuthorizerIntegrationTest extends BaseRequestTest {
|
|||
properties.put(KafkaConfig.AuthorizerClassNameProp, classOf[SimpleAclAuthorizer].getName)
|
||||
properties.put(KafkaConfig.BrokerIdProp, brokerId.toString)
|
||||
properties.put(KafkaConfig.OffsetsTopicPartitionsProp, "1")
|
||||
properties.put(KafkaConfig.OffsetsTopicReplicationFactorProp, "1")
|
||||
properties.put(KafkaConfig.TransactionsTopicPartitionsProp, "1")
|
||||
properties.put(KafkaConfig.TransactionsTopicReplicationFactorProp, "1")
|
||||
properties.put(KafkaConfig.TransactionsTopicMinISRProp, "1")
|
||||
|
|
|
|||
|
|
@ -65,10 +65,6 @@ class DynamicConnectionQuotaTest extends BaseRequestTest {
|
|||
}
|
||||
}
|
||||
|
||||
override protected def brokerPropertyOverrides(properties: Properties): Unit = {
|
||||
super.brokerPropertyOverrides(properties)
|
||||
}
|
||||
|
||||
@Test
|
||||
def testDynamicConnectionQuota(): Unit = {
|
||||
val maxConnectionsPerIP = 5
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ import scala.collection.Seq
|
|||
class MetadataRequestTest extends BaseRequestTest {
|
||||
|
||||
override def brokerPropertyOverrides(properties: Properties): Unit = {
|
||||
properties.setProperty(KafkaConfig.OffsetsTopicPartitionsProp, "1")
|
||||
properties.setProperty(KafkaConfig.DefaultReplicationFactorProp, "2")
|
||||
properties.setProperty(KafkaConfig.RackProp, s"rack/${properties.getProperty(KafkaConfig.BrokerIdProp)}")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue