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 B91D6200B32 for ; Thu, 9 Jun 2016 02:39:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B7CAE160A35; Thu, 9 Jun 2016 00:39:22 +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 0BCE5160A2E for ; Thu, 9 Jun 2016 02:39:21 +0200 (CEST) Received: (qmail 86011 invoked by uid 500); 9 Jun 2016 00:39:21 -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 85997 invoked by uid 99); 9 Jun 2016 00:39:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2016 00:39:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 001AF2C1F62 for ; Thu, 9 Jun 2016 00:39:20 +0000 (UTC) Date: Thu, 9 Jun 2016 00:39:20 +0000 (UTC) From: "Carlo Curino (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5124) Modify AMRMClient to set the ExecutionType in the ResourceRequest MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 09 Jun 2016 00:39:22 -0000 [ https://issues.apache.org/jira/browse/YARN-5124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15321713#comment-15321713 ] Carlo Curino commented on YARN-5124: ------------------------------------ [~asuresh] this seems better, however you still have the typedefs in the new class, and you have foreach loops on Object that are a bit weird. Would it be possible to move into the {{RemoteRequestTable}} the {{addResourceRequest}}, {{decResourceRequest}} and {{getMatchingRequests}}. This could simplify further the {{AMRMClientImpl}} and delegate to the db-style class all matter of data access. Concretely I propose: 1) get rid of the typedefs 2) move the add/dec/get to the RemoteRequestTable 3) create a new getter to support {{checkLocalityRelaxationConflict}} where the matching is done internally in {{RemoteRequestTable}} and the external method operates on a narrowly typed list (built by the getter). This would fully encapsulate the data storage/access and allow you to evolve that independently of the external business-logic classes. > Modify AMRMClient to set the ExecutionType in the ResourceRequest > ----------------------------------------------------------------- > > Key: YARN-5124 > URL: https://issues.apache.org/jira/browse/YARN-5124 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Arun Suresh > Assignee: Arun Suresh > Attachments: YARN-5124.001.patch, YARN-5124.002.patch, YARN-5124.003.patch, YARN-5124.004.patch, YARN-5124.005.patch, YARN-5124.006.patch, YARN-5124.008.patch, YARN-5124.009.patch, YARN-5124.010.patch, YARN-5124.011.patch, YARN-5124.012.patch, YARN-5124_YARN-5180_combined.007.patch, YARN-5124_YARN-5180_combined.008.patch > > > Currently the {{ContainerRequest}} allows the AM to set the {{ExecutionType}} in the AMRMClient, but it is not being set in the actual {{ResourceRequest}} that is sent to the RM -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org