Logging stale datanode information. Contributed by Karthik Palanisamy.
This commit is contained in:
parent
e8d7e3b4e6
commit
51950f149e
|
@ -379,6 +379,9 @@ class HeartbeatManager implements DatanodeStatistics {
|
||||||
dead = d;
|
dead = d;
|
||||||
}
|
}
|
||||||
if (d.isStale(dm.getStaleInterval())) {
|
if (d.isStale(dm.getStaleInterval())) {
|
||||||
|
LOG.warn(String.format("Stale datanode {}."
|
||||||
|
+ " No heartbeat received since last {} milliseconds"),
|
||||||
|
d.getName(), dm.getStaleInterval());
|
||||||
numOfStaleNodes++;
|
numOfStaleNodes++;
|
||||||
}
|
}
|
||||||
DatanodeStorageInfo[] storageInfos = d.getStorageInfos();
|
DatanodeStorageInfo[] storageInfos = d.getStorageInfos();
|
||||||
|
|
Loading…
Reference in New Issue