HDFS-11005. Ozone: TestBlockPoolManager fails in ozone branch. Contributed by Chen Liang.
This commit is contained in:
parent
59dfa74829
commit
eb8f2b2ca0
|
@ -150,15 +150,16 @@ class BlockPoolManager {
|
||||||
LOG.info("Refresh request received for nameservices: " + conf.get
|
LOG.info("Refresh request received for nameservices: " + conf.get
|
||||||
(DFSConfigKeys.DFS_NAMESERVICES));
|
(DFSConfigKeys.DFS_NAMESERVICES));
|
||||||
|
|
||||||
final Map<String, Map<String, InetSocketAddress>> newAddressMap =
|
Map<String, Map<String, InetSocketAddress>> newAddressMap =
|
||||||
new HashMap<>();
|
new HashMap<>();
|
||||||
final Map<String, Map<String, InetSocketAddress>> newLifelineAddressMap =
|
Map<String, Map<String, InetSocketAddress>> newLifelineAddressMap =
|
||||||
new HashMap<>();
|
new HashMap<>();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
newAddressMap.putAll(DFSUtil.getNNServiceRpcAddressesForCluster(conf));
|
newAddressMap =
|
||||||
newLifelineAddressMap.putAll(
|
DFSUtil.getNNServiceRpcAddressesForCluster(conf);
|
||||||
DFSUtil.getNNLifelineRpcAddressesForCluster(conf));
|
newLifelineAddressMap =
|
||||||
|
DFSUtil.getNNLifelineRpcAddressesForCluster(conf);
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
LOG.warn("Unable to get NameNode addresses. " +
|
LOG.warn("Unable to get NameNode addresses. " +
|
||||||
"This may be an Ozone-only cluster.");
|
"This may be an Ozone-only cluster.");
|
||||||
|
|
Loading…
Reference in New Issue