Logging stale datanode information. Contributed by Karthik Palanisamy.

This commit is contained in:
Bharat Viswanadham 2019-02-19 17:01:07 -08:00
parent e8d7e3b4e6
commit 51950f149e

View File

@ -379,6 +379,9 @@ void heartbeatCheck() {
dead = d;
}
if (d.isStale(dm.getStaleInterval())) {
LOG.warn(String.format("Stale datanode {}."
+ " No heartbeat received since last {} milliseconds"),
d.getName(), dm.getStaleInterval());
numOfStaleNodes++;
}
DatanodeStorageInfo[] storageInfos = d.getStorageInfos();