Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AC75D17FA7 for ; Mon, 23 Feb 2015 12:02:12 +0000 (UTC) Received: (qmail 36231 invoked by uid 500); 23 Feb 2015 12:02:12 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 36180 invoked by uid 500); 23 Feb 2015 12:02:12 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 36167 invoked by uid 99); 23 Feb 2015 12:02:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Feb 2015 12:02:12 +0000 Date: Mon, 23 Feb 2015 12:02:12 +0000 (UTC) From: "Rohith (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-3202) Improve master container resource release time ICO work preserving restart enabled 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-3202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rohith updated YARN-3202: ------------------------- Attachment: 0001-YARN-3202.patch > Improve master container resource release time ICO work preserving restart enabled > ---------------------------------------------------------------------------------- > > Key: YARN-3202 > URL: https://issues.apache.org/jira/browse/YARN-3202 > Project: Hadoop YARN > Issue Type: Improvement > Components: resourcemanager > Reporter: Rohith > Assignee: Rohith > Priority: Minor > Attachments: 0001-YARN-3202.patch > > > While NM is registering with RM , If NM sends completed_container for masterContainer then immediately resources of master container are released by triggering the CONTAINER_FINISHED event. This releases all the resources held by master container and allocated for other pending resource requests by applications. > But ICO rm work preserving restart is enabled, if master container state is completed then the attempt is not move to FINISHING as long as container expiry triggered by container livelyness monitor. I think in the below code, need not check for work preserving restart enable so that immediately master container resources get released and allocated to other pending resource requests of different applications > {code} > // Handle received container status, this should be processed after new > // RMNode inserted > if (!rmContext.isWorkPreservingRecoveryEnabled()) { > if (!request.getNMContainerStatuses().isEmpty()) { > LOG.info("received container statuses on node manager register :" > + request.getNMContainerStatuses()); > for (NMContainerStatus status : request.getNMContainerStatuses()) { > handleNMContainerStatus(status, nodeId); > } > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)