hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira Ajisaka (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (YARN-6150) TestContainerManagerSecurity tests for Yarn Server are flakey
Date Tue, 25 Jul 2017 06:21:00 GMT

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

Akira Ajisaka edited comment on YARN-6150 at 7/25/17 6:20 AM:
--------------------------------------------------------------

If the hostname does not contains dot or is not localhost, NetUtils.createSocketAddr calls
SecurityUtil.getByNameWithSearch(String) and it adds trailing dot to the hostname (please
see Javadoc of SecurityUtil.getByExactName for the detail) and then resolve the hostname.
In the environment, "af73ca3dfb64." (with trailing dot) cannot be resolved, so the error occurs.

Replacing the above code with
{code:title=TestContainerManagerSecurity#getContainerManagementProtocolProxy}
    final InetSocketAddress addr =
        new InetSocketAddress(nodeId.getHost(), nodeId.getPort());
{code}
fixes the error.


was (Author: ajisakaa):
If the hostname does not contains dot or is not localhost, NetUtils.createSocketAddr calls
SecurityUtils.getByNameWithSearch(String) and it adds trailing dot to the hostname (please
see Javadoc of  NetUtils.getByExactName for the detail) and then resolve the hostname. In
the environment, "af73ca3dfb64." (with trailing dot) cannot be resolved, so the error occurs.

Replacing the above code with
{code:title=TestContainerManagerSecurity#getContainerManagementProtocolProxy}
    final InetSocketAddress addr =
        new InetSocketAddress(nodeId.getHost(), nodeId.getPort());
{code}
fixes the error.

> TestContainerManagerSecurity tests for Yarn Server are flakey
> -------------------------------------------------------------
>
>                 Key: YARN-6150
>                 URL: https://issues.apache.org/jira/browse/YARN-6150
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: test
>            Reporter: Daniel Sturman
>            Assignee: Daniel Sturman
>             Fix For: 2.9.0, 3.0.0-beta1
>
>         Attachments: YARN-6150.001.patch, YARN-6150.002.patch, YARN-6150.003.patch, YARN-6150.004.patch,
YARN-6150.005.patch, YARN-6150.006.patch, YARN-6150.007.patch
>
>
> Repeated runs of {{org.apache.hadoop.yarn.server.TestContainerManagedSecurity}} can either
pass or fail on repeated runs on the same codebase.  Also, the two runs (one in secure mode,
one without security) aren't well labeled in JUnit.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message