You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by eo...@apache.org on 2022/06/24 16:45:20 UTC

[pulsar] branch master updated: [improvement][broker]: remove spammy log 'The count of topics on the bundle {} is less than 2, skip split!' (#16212)

This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 35917e6f2e2 [improvement][broker]: remove spammy log 'The count of topics on the bundle {} is less than 2, skip split!' (#16212)
35917e6f2e2 is described below

commit 35917e6f2e2b677044fde33e79e516d8b6f31915
Author: Enrico Olivelli <eo...@apache.org>
AuthorDate: Fri Jun 24 18:45:15 2022 +0200

    [improvement][broker]: remove spammy log 'The count of topics on the bundle {} is less than 2, skip split!' (#16212)
---
 .../org/apache/pulsar/broker/loadbalance/impl/BundleSplitterTask.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/BundleSplitterTask.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/BundleSplitterTask.java
index bbc815c4a16..d14f9128f94 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/BundleSplitterTask.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/BundleSplitterTask.java
@@ -73,7 +73,9 @@ public class BundleSplitterTask implements BundleSplitStrategy {
                 final String bundle = entry.getKey();
                 final NamespaceBundleStats stats = entry.getValue();
                 if (stats.topics < 2) {
-                    log.info("The count of topics on the bundle {} is less than 2, skip split!", bundle);
+                    if (log.isDebugEnabled()) {
+                        log.debug("The count of topics on the bundle {} is less than 2, skip split!", bundle);
+                    }
                     continue;
                 }
                 double totalMessageRate = 0;