HDFS-11700. TestHDFSServerPorts#testBackupNodePorts doesn't pass on Windows. Contributed by Anbang Hu.
(cherry picked from commit eaca7980ad2a750f6b0025a706062740c2ddded2)
This commit is contained in:
parent
583b9b418a
commit
c168329cc4
@ -381,6 +381,11 @@ public void testBackupNodePorts() throws Exception {
|
|||||||
assertFalse("Backup started on same port as Namenode",
|
assertFalse("Backup started on same port as Namenode",
|
||||||
canStartBackupNode(backup_config)); // should fail
|
canStartBackupNode(backup_config)); // should fail
|
||||||
|
|
||||||
|
// reset namenode backup address because Windows does not release
|
||||||
|
// port used previously properly.
|
||||||
|
backup_config.set(
|
||||||
|
DFSConfigKeys.DFS_NAMENODE_BACKUP_ADDRESS_KEY, THIS_HOST);
|
||||||
|
|
||||||
// bind http server to a different port
|
// bind http server to a different port
|
||||||
backup_config.set(
|
backup_config.set(
|
||||||
DFSConfigKeys.DFS_NAMENODE_BACKUP_HTTP_ADDRESS_KEY, THIS_HOST);
|
DFSConfigKeys.DFS_NAMENODE_BACKUP_HTTP_ADDRESS_KEY, THIS_HOST);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user