You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ij...@apache.org on 2022/12/27 22:12:43 UTC
[kafka] branch trunk updated: MINOR: Remove unused config variables (#13047)
This is an automated email from the ASF dual-hosted git repository.
ijuma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new f67627efc8e MINOR: Remove unused config variables (#13047)
f67627efc8e is described below
commit f67627efc8ecba6f14edf1bfa788352e71f70f6c
Author: Ismael Juma <is...@juma.me.uk>
AuthorDate: Tue Dec 27 14:12:30 2022 -0800
MINOR: Remove unused config variables (#13047)
` MaxIdMapSnapshots` and `ControllerMessageQueueSize` never had any use.
`TransactionalIdExpirationMsDefault` is a duplicate of `TransactionalIdExpirationMs`
(the latter is used).
Also move `DeleteTopicEnable` and `CompressionType` to the right section.
Reviewers: Ron Dagostino <rd...@confluent.io>
---
core/src/main/scala/kafka/log/LogConfig.scala | 1 -
core/src/main/scala/kafka/server/KafkaConfig.scala | 13 ++-----------
2 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/core/src/main/scala/kafka/log/LogConfig.scala b/core/src/main/scala/kafka/log/LogConfig.scala
index 66743b212e1..a4d489bda45 100755
--- a/core/src/main/scala/kafka/log/LogConfig.scala
+++ b/core/src/main/scala/kafka/log/LogConfig.scala
@@ -71,7 +71,6 @@ object Defaults {
val MessageTimestampDifferenceMaxMs = kafka.server.Defaults.LogMessageTimestampDifferenceMaxMs
val LeaderReplicationThrottledReplicas = Collections.emptyList[String]()
val FollowerReplicationThrottledReplicas = Collections.emptyList[String]()
- val MaxIdMapSnapshots = kafka.server.Defaults.MaxIdMapSnapshots
val MessageDownConversionEnable = kafka.server.Defaults.MessageDownConversionEnable
}
diff --git a/core/src/main/scala/kafka/server/KafkaConfig.scala b/core/src/main/scala/kafka/server/KafkaConfig.scala
index d0da5c6eb6d..13839bb88ba 100755
--- a/core/src/main/scala/kafka/server/KafkaConfig.scala
+++ b/core/src/main/scala/kafka/server/KafkaConfig.scala
@@ -84,6 +84,7 @@ object Defaults {
val MetadataSnapshotMaxIntervalMs = TimeUnit.HOURS.toMillis(1);
val MetadataMaxIdleIntervalMs = 500
val MetadataMaxRetentionBytes = 100 * 1024 * 1024
+ val DeleteTopicEnable = true
/** KRaft mode configs */
val EmptyNodeId: Int = -1
@@ -154,10 +155,10 @@ object Defaults {
val AutoCreateTopicsEnable = true
val MinInSyncReplicas = 1
val MessageDownConversionEnable = true
+ val CompressionType = BrokerCompressionType.PRODUCER.name
/** ********* Replication configuration ***********/
val ControllerSocketTimeoutMs = RequestTimeoutMs
- val ControllerMessageQueueSize = Int.MaxValue
val DefaultReplicationFactor = 1
val ReplicaLagTimeMaxMs = 30000L
val ReplicaSocketTimeoutMs = 30 * 1000
@@ -230,14 +231,6 @@ object Defaults {
val NumControllerQuotaSamples: Int = ClientQuotaManagerConfig.DefaultNumQuotaSamples
val ControllerQuotaWindowSizeSeconds: Int = ClientQuotaManagerConfig.DefaultQuotaWindowSizeSeconds
- /** ********* Transaction Configuration ***********/
- val TransactionalIdExpirationMsDefault = 604800000
-
- val DeleteTopicEnable = true
-
- val CompressionType = BrokerCompressionType.PRODUCER.name
-
- val MaxIdMapSnapshots = 2
/** ********* Kafka Metrics Configuration ***********/
val MetricNumSamples = 2
val MetricSampleWindowMs = 30000
@@ -483,7 +476,6 @@ object KafkaConfig {
val LogMessageTimestampTypeProp = LogConfigPrefix + "message.timestamp.type"
val LogMessageTimestampDifferenceMaxMsProp = LogConfigPrefix + "message.timestamp.difference.max.ms"
- val LogMaxIdMapSnapshotsProp = LogConfigPrefix + "max.id.map.snapshots"
val NumRecoveryThreadsPerDataDirProp = "num.recovery.threads.per.data.dir"
val AutoCreateTopicsEnableProp = "auto.create.topics.enable"
val MinInSyncReplicasProp = "min.insync.replicas"
@@ -914,7 +906,6 @@ object KafkaConfig {
/** ********* Replication configuration ***********/
val ControllerSocketTimeoutMsDoc = "The socket timeout for controller-to-broker channels"
- val ControllerMessageQueueSizeDoc = "The buffer size for controller-to-broker-channels"
val DefaultReplicationFactorDoc = "The default replication factors for automatically created topics"
val ReplicaLagTimeMaxMsDoc = "If a follower hasn't sent any fetch requests or hasn't consumed up to the leaders log end offset for at least this time," +
" the leader will remove the follower from isr"