We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92ebd46 commit eaca798Copy full SHA for eaca798
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestHDFSServerPorts.java
@@ -381,6 +381,11 @@ public void testBackupNodePorts() throws Exception {
381
assertFalse("Backup started on same port as Namenode",
382
canStartBackupNode(backup_config)); // should fail
383
384
+ // reset namenode backup address because Windows does not release
385
+ // port used previously properly.
386
+ backup_config.set(
387
+ DFSConfigKeys.DFS_NAMENODE_BACKUP_ADDRESS_KEY, THIS_HOST);
388
+
389
// bind http server to a different port
390
backup_config.set(
391
DFSConfigKeys.DFS_NAMENODE_BACKUP_HTTP_ADDRESS_KEY, THIS_HOST);
0 commit comments