Add a small delay in DN before retrying to connect to NN
@@ -405,6 +405,8 @@ private void offerService() throws Exception {
LOG.warn("IOException in offerService", e);
//not connected to namenode
connectedToNN = false;
+ long sleepTime = Math.min(1000, dnConf.heartBeatInterval);
+ Thread.sleep(sleepTime);
}
} // while (shouldRun())
} // offerService
