[
https://issues.apache.org/jira/browse/HADOOP-8334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daryn Sharp updated HADOOP-8334:
--------------------------------
Attachment: HADOOP-8334.patch
During some pending yarn work, {{HttpServer}} was returning -1 for the
listening port on some of the tests. I found that -1 is only returned if the
socket is not bound. This simplifies the logic of ensuring the port is bound.
> HttpServer sometimes returns incorrect port
> -------------------------------------------
>
> Key: HADOOP-8334
> URL: https://issues.apache.org/jira/browse/HADOOP-8334
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 0.23.3, 0.24.0, 2.0.0
> Reporter: Daryn Sharp
> Assignee: Daryn Sharp
> Attachments: HADOOP-8334.patch
>
>
> {{HttpServer}} is not always returning the correct listening port.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira