HDFS-15919. BlockPoolManager should log stack trace if unable to get Namenode addresses. Contributed by Stephen O'Donnell.

This commit is contained in:
He Xiaoqiao 2021-03-25 12:24:14 +08:00
parent 654555783d
commit ed5814deff
No known key found for this signature in database
GPG Key ID: A80CC124E9A0FA63

View File

@ -158,7 +158,7 @@ void refreshNamenodes(Configuration conf)
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()) {