Skip to content

Commit 065cbc6

Browse files
xiaoyuyaobharatviswa504
authored andcommitted
HDDS-1896. Suppress WARN log from NetworkTopology#getDistanceCost. Contributed by Xiaoyu Yao. (#1214)
1 parent f4df97f commit 065cbc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/net/NetworkTopologyImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ public int getDistanceCost(Node node1, Node node2) {
595595
try {
596596
if ((node1.getAncestor(maxLevel - 1) != clusterTree) ||
597597
(node2.getAncestor(maxLevel - 1) != clusterTree)) {
598-
LOG.warn("One of the nodes is outside of network topology");
598+
LOG.debug("One of the nodes is outside of network topology");
599599
return Integer.MAX_VALUE;
600600
}
601601
int level1 = node1.getLevel();

0 commit comments

Comments
 (0)