From yarn-issues-return-144488-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Tue May 8 21:04:04 2018 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 mx-eu-01.ponee.io (Postfix) with SMTP id F3EFB18063B for ; Tue, 8 May 2018 21:04:03 +0200 (CEST) Received: (qmail 22578 invoked by uid 500); 8 May 2018 19:04:03 -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 22564 invoked by uid 99); 8 May 2018 19:04:03 -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, 08 May 2018 19:04: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 73071C1334 for ; Tue, 8 May 2018 19:04:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id XvlYGP8EwVEz for ; Tue, 8 May 2018 19:04:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 065605FB94 for ; Tue, 8 May 2018 19:04:01 +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 574AAE00C6 for ; Tue, 8 May 2018 19:04: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 12E5D21299 for ; Tue, 8 May 2018 19:04:00 +0000 (UTC) Date: Tue, 8 May 2018 19:04:00 +0000 (UTC) From: "Hudson (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-8232) RMContainer lost queue name when RM HA happens MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-8232?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16467= 829#comment-16467829 ]=20 Hudson commented on YARN-8232: ------------------------------ SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #14141 (See [https= ://builds.apache.org/job/Hadoop-trunk-Commit/14141/]) YARN-8232. RMContainer lost queue name when RM HA happens. (Hu Ziqian (wang= da: rev 6b96a73bb0f0ad1c877a062b19091e3e15a33ec4) * (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-ser= ver-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourceman= ager/scheduler/AbstractYarnScheduler.java * (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-ser= ver-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourceman= ager/scheduler/TestAbstractYarnScheduler.java > RMContainer lost queue name when RM HA happens > ---------------------------------------------- > > Key: YARN-8232 > URL: https://issues.apache.org/jira/browse/YARN-8232 > Project: Hadoop YARN > Issue Type: Bug > Components: resourcemanager > Affects Versions: 2.8.3 > Reporter: Hu Ziqian > Assignee: Hu Ziqian > Priority: Major > Fix For: 3.2.0, 3.1.1 > > Attachments: YARN-8232-branch-2.8.3.001.patch, YARN-8232.001.patc= h, YARN-8232.002.patch, YARN-8232.003.patch > > > RMContainer=C2=A0has a member variable queuename to store which queue the= container belongs to. When RM HA happens and RMContainers are recovered by= scheduler based on NM reports,=C2=A0the queue name isn't recovered and alw= ays be null. > This situation causes=C2=A0some problems. Here is a case in preemption. P= reemption uses=C2=A0container's queue name=C2=A0to=C2=A0deduct preemptable = resources when we use more than one preempt selector, (for example, enable = intra-queue preemption,) . The detail is in > {code:java} > CapacitySchedulerPreemptionUtils.deductPreemptableResourcesBasedSelectedC= andidates(){code} > If the contain's queue name is null, this function will throw a=C2=A0Yarn= RuntimeException because it tries to get the container's=C2=A0TempQueuePerP= artition and the preemption fails. > Our patch solved this problem by setting container queue name when recove= r containers. The patch is based on branch-2.8.3. > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org