HDDS-1896. Suppress WARN log from NetworkTopology#getDistanceCost. Contributed by Xiaoyu Yao. (#1214)

This commit is contained in:
Xiaoyu Yao 2019-08-03 22:33:01 -07:00 committed by Bharat Viswanadham
parent f4df97fd89
commit 065cbc6b54
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ public class NetworkTopologyImpl implements NetworkTopology{
try { try {
if ((node1.getAncestor(maxLevel - 1) != clusterTree) || if ((node1.getAncestor(maxLevel - 1) != clusterTree) ||
(node2.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; return Integer.MAX_VALUE;
} }
int level1 = node1.getLevel(); int level1 = node1.getLevel();