HDFS-4722. TestGetConf#testFederation times out on Windows. Contributed by Ivan Mitic.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1476597 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fbf10b2604
commit
f55fd818e0
@ -268,7 +268,7 @@ Trunk (Unreleased)
|
||||
HDFS-4761. When resetting FSDirectory, the inodeMap should also be reset.
|
||||
(Jing Zhao via szetszwo)
|
||||
|
||||
BREAKDOWN OF HADOOP-8562 SUBTASKS AND RELATED JIRAS
|
||||
BREAKDOWN OF HADOOP-8562 and HDFS-3602 SUBTASKS AND RELATED JIRAS
|
||||
|
||||
HDFS-4145. Merge hdfs cmd line scripts from branch-1-win. (David Lao,
|
||||
Bikas Saha, Lauren Yang, Chuan Liu, Thejas M Nair and Ivan Mitic via suresh)
|
||||
@ -320,6 +320,9 @@ Trunk (Unreleased)
|
||||
HDFS-4740. Fixes for a few test failures on Windows.
|
||||
(Arpit Agarwal via suresh)
|
||||
|
||||
HDFS-4722. TestGetConf#testFederation times out on Windows.
|
||||
(Ivan Mitic via suresh)
|
||||
|
||||
BREAKDOWN OF HDFS-347 SUBTASKS AND RELATED JIRAS
|
||||
|
||||
HDFS-4353. Encapsulate connections to peers in Peer and PeerServer classes.
|
||||
|
@ -87,6 +87,16 @@ private String[] setupAddress(HdfsConfiguration conf, String key,
|
||||
return values;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add namenodes to the static resolution list to avoid going
|
||||
* through DNS which can be really slow in some configurations.
|
||||
*/
|
||||
private void setupStaticHostResolution(int nameServiceIdCount) {
|
||||
for (int i = 0; i < nameServiceIdCount; i++) {
|
||||
NetUtils.addStaticResolution("nn" + i, "localhost");
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert the map returned from DFSUtil functions to an array of
|
||||
* addresses represented as "host:port"
|
||||
@ -306,6 +316,7 @@ public void testFederation() throws Exception {
|
||||
String[] nnAddresses = setupAddress(conf,
|
||||
DFS_NAMENODE_SERVICE_RPC_ADDRESS_KEY, nsCount, 1000);
|
||||
setupAddress(conf, DFS_NAMENODE_RPC_ADDRESS_KEY, nsCount, 1500);
|
||||
setupStaticHostResolution(nsCount);
|
||||
String[] backupAddresses = setupAddress(conf,
|
||||
DFS_NAMENODE_BACKUP_ADDRESS_KEY, nsCount, 2000);
|
||||
String[] secondaryAddresses = setupAddress(conf,
|
||||
|
Loading…
Reference in New Issue
Block a user