HDFS-15919. BlockPoolManager should log stack trace if unable to get Namenode addresses. Contributed by Stephen O'Donnell.
This commit is contained in:
parent
4db5643ff9
commit
bf018e7237
|
@ -158,7 +158,7 @@ class BlockPoolManager {
|
||||||
newLifelineAddressMap =
|
newLifelineAddressMap =
|
||||||
DFSUtil.getNNLifelineRpcAddressesForCluster(conf);
|
DFSUtil.getNNLifelineRpcAddressesForCluster(conf);
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
LOG.warn("Unable to get NameNode addresses.");
|
LOG.warn("Unable to get NameNode addresses.", ioe);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newAddressMap == null || newAddressMap.isEmpty()) {
|
if (newAddressMap == null || newAddressMap.isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue