You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Mingliang Liu (JIRA)" <ji...@apache.org> on 2015/09/17 00:26:46 UTC
[jira] [Updated] (HADOOP-12417) TestWebDelegationToken failing with
port in use
[ https://issues.apache.org/jira/browse/HADOOP-12417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mingliang Liu updated HADOOP-12417:
-----------------------------------
Attachment: HADOOP-12417.000.patch
When creating jetty sever, the v0 patch always binds port *0* which gives us an ephemeral port, instead of searching a free port before starting jetty.
In {{getJettyURL()}} methods, we should use {{connector.getLocalPort()}} after the jetty starts.
> TestWebDelegationToken failing with port in use
> -----------------------------------------------
>
> Key: HADOOP-12417
> URL: https://issues.apache.org/jira/browse/HADOOP-12417
> Project: Hadoop Common
> Issue Type: Bug
> Components: test
> Affects Versions: 3.0.0
> Environment: Jenkins
> Reporter: Steve Loughran
> Assignee: Mingliang Liu
> Attachments: HADOOP-12417.000.patch
>
>
> The {{TestWebDelegationToken}} failed on Jenkins with port in use. It looks like the code searches for a free port and then starts jetty, but maybe there's enough of a race condition between port location and jetty.start to cause intermittent failures.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)