You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by rz...@apache.org on 2023/11/09 12:34:04 UTC

(storm) branch master updated: STORM-3986 - Get rid of BlacklistScheduler timer [INFO] logs

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 81ac43be3 STORM-3986 - Get rid of BlacklistScheduler timer [INFO] logs
81ac43be3 is described below

commit 81ac43be30f8da4c76305b2fb04504d12fb29d40
Author: Richard Zowalla <rz...@apache.org>
AuthorDate: Thu Nov 9 13:25:23 2023 +0100

    STORM-3986 - Get rid of BlacklistScheduler timer [INFO] logs
---
 .../org/apache/storm/scheduler/blacklist/BlacklistScheduler.java    | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/storm-server/src/main/java/org/apache/storm/scheduler/blacklist/BlacklistScheduler.java b/storm-server/src/main/java/org/apache/storm/scheduler/blacklist/BlacklistScheduler.java
index b29981f20..2f9aca767 100644
--- a/storm-server/src/main/java/org/apache/storm/scheduler/blacklist/BlacklistScheduler.java
+++ b/storm-server/src/main/java/org/apache/storm/scheduler/blacklist/BlacklistScheduler.java
@@ -194,7 +194,11 @@ public class BlacklistScheduler implements IScheduler {
                 new ArrayList<>(badSupervisorsToleranceSlidingWindow),
                 new ArrayList<>(sendAssignmentFailureCount),
                 cluster, topologies);
-        LOG.info("Supervisors {} are blacklisted.", blacklistedSupervisors);
+        if (blacklistedSupervisors.isEmpty()) {
+            LOG.debug("No Supervisors are blacklisted.");
+        } else {
+            LOG.info("Supervisors {} are blacklisted.", blacklistedSupervisors);
+        }
         return blacklistedSupervisors;
     }