From c61313f4c4a396364aa19d63e68429c1a0cb277a Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Sun, 20 Nov 2022 23:53:17 -0800 Subject: [PATCH] Quieter streaming supervisors. (#13392) Eliminates two common sources of noise with Kafka supervisors that have large numbers of tasks and partitions: 1) Log the report at DEBUG rather than INFO level at each run cycle. It can get quite large, and can be retrieved via API when needed. 2) Use log4j2.xml to quiet down the org.apache.kafka.clients.consumer.internals package. Avoids a log message per-partition per-minute as part of seeking to the latest offset in the reporting thread. In the tasks, where this sort of logging might be more useful, we have another log message with the same information: "Seeking partition[%s] to[%s]". --- examples/conf/druid/cluster/_common/log4j2.xml | 5 +++++ .../seekablestream/supervisor/SeekableStreamSupervisor.java | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/conf/druid/cluster/_common/log4j2.xml b/examples/conf/druid/cluster/_common/log4j2.xml index 66dc13da4c5..f55b70070c2 100644 --- a/examples/conf/druid/cluster/_common/log4j2.xml +++ b/examples/conf/druid/cluster/_common/log4j2.xml @@ -82,5 +82,10 @@ + + + + + diff --git a/indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisor.java b/indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisor.java index 6f00ef7fbfd..073749ca13d 100644 --- a/indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisor.java +++ b/indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisor.java @@ -1508,9 +1508,7 @@ public abstract class SeekableStreamSupervisor