[ 
https://issues.apache.org/jira/browse/HDFS-9458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15048008#comment-15048008
 ] 

Xiao Chen commented on HDFS-9458:
---------------------------------

First, thanks [~cnauroth] for pointing me to this JIRA from HDFS-9512. My 
initial search didn't land me here. [~yzhangal]'s HDFS-6054 seems to be another 
case so I think we can do it in parallel.

I took Chris' advice in the comment, and reviewed around {{TestBackupNode}}, 
didn't find similar problems other than the NN http port. I did see that NN 
backup http port was unnecessarily set twice. Attached patch 1 to reflex the 
change.
Locally tested with {{nc -l 50070}} to make sure the test fails without the 
fix, passes with. Also tried with the configured rpc port 1234, and the test 
can pass. Please help review. Thanks!

BTW, looks like [~xiaobingo] accidentally assigned this to me, so I'd take the 
coincidence for now. :)

> TestBackupNode always binds to port 50070, which can cause bind failures.
> -------------------------------------------------------------------------
>
>                 Key: HDFS-9458
>                 URL: https://issues.apache.org/jira/browse/HDFS-9458
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>            Reporter: Chris Nauroth
>            Assignee: Xiao Chen
>         Attachments: HDFS-9458.001.patch
>
>
> {{TestBackupNode}} does not override port settings to use a dynamically 
> selected port for the NameNode HTTP server.  It uses the default of 50070 
> defined in hdfs-default.xml.  This should be changed to select a dynamic port 
> to avoid bind errors.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to