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

Haohui Mai commented on HADOOP-11435:
-------------------------------------

{{findPort()}} is a wrong API -- I think the right fix is to remove it 
completely and to change all callees to specify port 0.

> refine HttpServer2 port retry detail
> ------------------------------------
>
>                 Key: HADOOP-11435
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11435
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.7.0
>            Reporter: Liang Xie
>            Assignee: Liang Xie
>         Attachments: HADOOP-11435-001.txt
>
>
> Current port retry could reach out the max port number.  the style is:
> while(true)
> {
> ++port;
> sleep(100);
> }
> let's ensure the retry port be picked from a normal range always.



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

Reply via email to