[
https://issues.apache.org/jira/browse/YARN-6150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16057150#comment-16057150
]
Akira Ajisaka commented on YARN-6150:
-------------------------------------
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: yarn
> Reporter: Daniel Sturman
> Assignee: Daniel Sturman
> 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
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]