From 1b0e39a7f291f43d50b0a02a2d60dcde85dcd676 Mon Sep 17 00:00:00 2001 From: niebayes Date: Wed, 10 Jan 2024 18:45:18 +0800 Subject: [PATCH] chore: stop exposing num_partitions (#3132) --- config/metasrv.example.toml | 2 -- config/standalone.example.toml | 3 +-- src/common/meta/src/wal.rs | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/config/metasrv.example.toml b/config/metasrv.example.toml index 2664a088f3..b9adcf2152 100644 --- a/config/metasrv.example.toml +++ b/config/metasrv.example.toml @@ -64,8 +64,6 @@ provider = "raft_engine" # selector_type = "round_robin" # A Kafka topic is constructed by concatenating `topic_name_prefix` and `topic_id`. # topic_name_prefix = "greptimedb_wal_topic" -# Number of partitions per topic. -# num_partitions = 1 # Expected number of replicas of each partition. # replication_factor = 1 # Above which a topic creation operation will be cancelled. diff --git a/config/standalone.example.toml b/config/standalone.example.toml index 5757f26373..565c94cdb0 100644 --- a/config/standalone.example.toml +++ b/config/standalone.example.toml @@ -102,9 +102,8 @@ provider = "raft_engine" # selector_type = "round_robin" # The prefix of topic name. # topic_name_prefix = "greptimedb_wal_topic" -# Number of partitions per topic. -# num_partitions = 1 # The number of replicas of each partition. +# Warning: the replication factor must be positive and must not be greater than the number of broker endpoints. # replication_factor = 1 # The max size of a single producer batch. diff --git a/src/common/meta/src/wal.rs b/src/common/meta/src/wal.rs index 053b82350e..4d02395dab 100644 --- a/src/common/meta/src/wal.rs +++ b/src/common/meta/src/wal.rs @@ -97,7 +97,6 @@ mod tests { num_topics = 32 selector_type = "round_robin" topic_name_prefix = "greptimedb_wal_topic" - num_partitions = 1 replication_factor = 1 create_topic_timeout = "30s" backoff_init = "500ms"