Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C84001662EB for ; Tue, 25 Jul 2017 08:21:03 +0200 (CEST) Received: (qmail 85079 invoked by uid 500); 25 Jul 2017 06:21:02 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 85068 invoked by uid 99); 25 Jul 2017 06:21:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2017 06:21:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 3E8F3C1657 for ; Tue, 25 Jul 2017 06:21:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id o3r9aBj4D0h0 for ; Tue, 25 Jul 2017 06:21:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D66D15FD4A for ; Tue, 25 Jul 2017 06:21:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6883CE07D3 for ; Tue, 25 Jul 2017 06:21:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1E5CA23EFC for ; Tue, 25 Jul 2017 06:21:00 +0000 (UTC) Date: Tue, 25 Jul 2017 06:21:00 +0000 (UTC) From: "Akira Ajisaka (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (YARN-6150) TestContainerManagerSecurity tests for Yarn Server are flakey MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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