From 0b8989e167f585386e810122a59f8c6db9441c27 Mon Sep 17 00:00:00 2001 From: Keith Turner Date: Tue, 19 Nov 2024 22:02:13 +0000 Subject: [PATCH] reduces log level for some chatty logs --- .../apache/accumulo/server/conf/CheckCompactionConfig.java | 3 ++- .../manager/compaction/coordinator/QueueMetrics.java | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/server/base/src/main/java/org/apache/accumulo/server/conf/CheckCompactionConfig.java b/server/base/src/main/java/org/apache/accumulo/server/conf/CheckCompactionConfig.java index 2f9d9ec7c2a..3e3111f7aaf 100644 --- a/server/base/src/main/java/org/apache/accumulo/server/conf/CheckCompactionConfig.java +++ b/server/base/src/main/java/org/apache/accumulo/server/conf/CheckCompactionConfig.java @@ -106,7 +106,8 @@ public static void validate(AccumuloConfiguration config, Level level) Set defaultService = Set.of(DEFAULT_COMPACTION_SERVICE_NAME); if (servicesConfig.getPlanners().keySet().equals(defaultService)) { - log.warn("Only the default compaction service was created - {}", defaultService); + log.atLevel(level).log("Only the default compaction service was created - {}", + defaultService); return; } diff --git a/server/manager/src/main/java/org/apache/accumulo/manager/compaction/coordinator/QueueMetrics.java b/server/manager/src/main/java/org/apache/accumulo/manager/compaction/coordinator/QueueMetrics.java index aa429d6999d..f7c9f4bdc93 100644 --- a/server/manager/src/main/java/org/apache/accumulo/manager/compaction/coordinator/QueueMetrics.java +++ b/server/manager/src/main/java/org/apache/accumulo/manager/compaction/coordinator/QueueMetrics.java @@ -168,15 +168,15 @@ public void update() { CompactionJobQueues::getQueueCount) .description(COMPACTOR_JOB_PRIORITY_QUEUES.getDescription()).register(localRegistry); } - LOG.debug("update - cjq queues: {}", compactionJobQueues.getQueueIds()); + LOG.trace("update - cjq queues: {}", compactionJobQueues.getQueueIds()); Set definedQueues = compactionJobQueues.getQueueIds(); - LOG.debug("update - defined queues: {}", definedQueues); + LOG.trace("update - defined queues: {}", definedQueues); // Copy the keySet into a new Set so that changes to perQueueMetrics // don't affect the collection Set queuesWithMetrics = new HashSet<>(perQueueMetrics.keySet()); - LOG.debug("update - queues with metrics: {}", queuesWithMetrics); + LOG.trace("update - queues with metrics: {}", queuesWithMetrics); SetView queuesWithoutMetrics = Sets.difference(definedQueues, queuesWithMetrics);