HDFS-4669. Merge change 1466176 from trunk
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1466181 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4167aed789
commit
4f82642185
|
@ -141,6 +141,9 @@ Release 2.0.5-beta - UNRELEASED
|
|||
HDFS-4676. TestHDFSFileSystemContract should set MiniDFSCluster variable
|
||||
to null to free up memory. (suresh)
|
||||
|
||||
HDFS-4669. TestBlockPoolManager fails using IBM java. (Tian Hong Wang via
|
||||
suresh)
|
||||
|
||||
Release 2.0.4-alpha - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -458,7 +458,7 @@ public class DFSUtil {
|
|||
|
||||
// Look for configurations of the form <key>[.<nameserviceId>][.<namenodeId>]
|
||||
// across all of the configured nameservices and namenodes.
|
||||
Map<String, Map<String, InetSocketAddress>> ret = Maps.newHashMap();
|
||||
Map<String, Map<String, InetSocketAddress>> ret = Maps.newLinkedHashMap();
|
||||
for (String nsId : emptyAsSingletonNull(nameserviceIds)) {
|
||||
Map<String, InetSocketAddress> isas =
|
||||
getAddressesForNameserviceId(conf, nsId, defaultAddress, keys);
|
||||
|
|
|
@ -160,8 +160,8 @@ class BlockPoolManager {
|
|||
Map<String, Map<String, InetSocketAddress>> addrMap) throws IOException {
|
||||
assert Thread.holdsLock(refreshNamenodesLock);
|
||||
|
||||
Set<String> toRefresh = Sets.newHashSet();
|
||||
Set<String> toAdd = Sets.newHashSet();
|
||||
Set<String> toRefresh = Sets.newLinkedHashSet();
|
||||
Set<String> toAdd = Sets.newLinkedHashSet();
|
||||
Set<String> toRemove;
|
||||
|
||||
synchronized (this) {
|
||||
|
@ -239,4 +239,4 @@ class BlockPoolManager {
|
|||
protected BPOfferService createBPOS(List<InetSocketAddress> nnAddrs) {
|
||||
return new BPOfferService(nnAddrs, dn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -113,7 +113,7 @@ public class TestBlockPoolManager {
|
|||
|
||||
// Remove the first NS
|
||||
conf.set(DFSConfigKeys.DFS_NAMESERVICES,
|
||||
"ns1");
|
||||
"ns2");
|
||||
bpm.refreshNamenodes(conf);
|
||||
assertEquals(
|
||||
"stop #1\n" +
|
||||
|
|
Loading…
Reference in New Issue