From 065cbc6b5460427e24c7cb4eaa9538c080f35616 Mon Sep 17 00:00:00 2001 From: Xiaoyu Yao Date: Sat, 3 Aug 2019 22:33:01 -0700 Subject: [PATCH] HDDS-1896. Suppress WARN log from NetworkTopology#getDistanceCost. Contributed by Xiaoyu Yao. (#1214) --- .../org/apache/hadoop/hdds/scm/net/NetworkTopologyImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/net/NetworkTopologyImpl.java b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/net/NetworkTopologyImpl.java index 1a03215a51..07d86c1a19 100644 --- a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/net/NetworkTopologyImpl.java +++ b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/net/NetworkTopologyImpl.java @@ -595,7 +595,7 @@ public int getDistanceCost(Node node1, Node node2) { try { if ((node1.getAncestor(maxLevel - 1) != clusterTree) || (node2.getAncestor(maxLevel - 1) != clusterTree)) { - LOG.warn("One of the nodes is outside of network topology"); + LOG.debug("One of the nodes is outside of network topology"); return Integer.MAX_VALUE; } int level1 = node1.getLevel();