Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2607E200D13 for ; Fri, 15 Sep 2017 21:13:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 24AC51609C9; Fri, 15 Sep 2017 19:13:06 +0000 (UTC) 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 6B1FE1609D2 for ; Fri, 15 Sep 2017 21:13:05 +0200 (CEST) Received: (qmail 27708 invoked by uid 500); 15 Sep 2017 19:13:04 -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 27682 invoked by uid 99); 15 Sep 2017 19:13:04 -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; Fri, 15 Sep 2017 19:13:04 +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 00C37C0172 for ; Fri, 15 Sep 2017 19:13:04 +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 kcCtlFdmbGQm for ; Fri, 15 Sep 2017 19:13:03 +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 8131A5F1E7 for ; Fri, 15 Sep 2017 19:13:02 +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 55AF5E0F17 for ; Fri, 15 Sep 2017 19:13:01 +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 43DD72538E for ; Fri, 15 Sep 2017 19:13:00 +0000 (UTC) Date: Fri, 15 Sep 2017 19:13:00 +0000 (UTC) From: "Arun Suresh (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (YARN-7199) TestAMRMClientContainerRequest.testOpportunisticAndGuaranteedRequests is failing in trunk MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 15 Sep 2017 19:13:06 -0000 [ https://issues.apache.org/jira/browse/YARN-7199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16168375#comment-16168375 ] Arun Suresh edited comment on YARN-7199 at 9/15/17 7:12 PM: ------------------------------------------------------------ Thanks for the patch [~botong]. But I think the actual issue is that the {{ContainerRequestBuilder#build}} method is not populating the resource profile field with the default value {{ProfileCapability.DEFAULT_PROFILE}}. It looks the public {{ContainerRequest}} constructors do set the default value correctly - unfortunately, the builder uses the private constructor that does not. The proper fix should be to modify the private constructor to set the value to default AND add the resourceProfile() method in the builder, which can be used by a client to set it to something else. was (Author: asuresh): Thanks for the patch [~botong]. But I think the actual issue is that the {{ContainerRequestBuilder#build}} method is not populating the resource profile field with the default value {{ProfileCapability.DEFAULT_PROFILE}}. It looks the public {{ContainerRequest}} constructors that sets the value correctly - unfortunately, the builder uses the private constructor that does not. The proper fix should be to modify the private constructor to set the value to default AND add the resourceProfile() method in the builder, which can be used by a client to set it to something else. > TestAMRMClientContainerRequest.testOpportunisticAndGuaranteedRequests is failing in trunk > ----------------------------------------------------------------------------------------- > > Key: YARN-7199 > URL: https://issues.apache.org/jira/browse/YARN-7199 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Botong Huang > Assignee: Botong Huang > Attachments: YARN-7199.v1.patch, YARN-7199.v2.patch > > > java.lang.IllegalArgumentException: The profile name cannot be null > at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88) > at org.apache.hadoop.yarn.api.records.ProfileCapability.newInstance(ProfileCapability.java:68) > at org.apache.hadoop.yarn.client.api.impl.AMRMClientImpl.addContainerRequest(AMRMClientImpl.java:512) > at org.apache.hadoop.yarn.client.api.impl.TestAMRMClientContainerRequest.testOpportunisticAndGuaranteedRequests(TestAMRMClientContainerRequest.java:59) -- 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