Skip to content

Commit 1f03a21

Browse files
committed
Update comment for statistics.interval.ms librdkafka option
Signed-off-by: Azat Khuzhin <[email protected]>
1 parent 06a9e9a commit 1f03a21

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Storages/Kafka/StorageKafka.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -798,14 +798,10 @@ void StorageKafka::updateConfiguration(cppkafka::Configuration & kafka_config)
798798

799799
/// NOTE: statistics should be consumed, otherwise it creates too much
800800
/// entries in the queue, that leads to memory leak and slow shutdown.
801-
///
802-
/// This is the case when you have kafka table but no SELECT from it or
803-
/// materialized view attached.
804-
///
805-
/// So for now it is disabled by default, until properly fixed.
806801
if (!config.has(config_prefix + "." + "statistics_interval_ms"))
807802
{
808-
kafka_config.set("statistics.interval.ms", "3000"); // every 3 seconds by default. set to 0 to disable.
803+
// every 3 seconds by default. set to 0 to disable.
804+
kafka_config.set("statistics.interval.ms", "3000");
809805
}
810806

811807
// Configure interceptor to change thread name

0 commit comments

Comments
 (0)