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 6C984200C89 for ; Sat, 20 May 2017 03:56:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6B0B2160BD2; Sat, 20 May 2017 01:56:09 +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 B0682160BD1 for ; Sat, 20 May 2017 03:56:08 +0200 (CEST) Received: (qmail 41399 invoked by uid 500); 20 May 2017 01:56:07 -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 41387 invoked by uid 99); 20 May 2017 01:56:07 -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; Sat, 20 May 2017 01:56:07 +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 0DA88C69D6 for ; Sat, 20 May 2017 01:56:07 +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 Q5Kg2T4J_G-r for ; Sat, 20 May 2017 01:56:06 +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 DCA2E5FD8E for ; Sat, 20 May 2017 01:56:05 +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 6083EE0D49 for ; Sat, 20 May 2017 01:56:05 +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 277C021B5C for ; Sat, 20 May 2017 01:56:04 +0000 (UTC) Date: Sat, 20 May 2017 01:56:04 +0000 (UTC) From: "Konstantinos Karanasos (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-6593) [API] Introduce Placement Constraint object MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 20 May 2017 01:56:09 -0000 [ https://issues.apache.org/jira/browse/YARN-6593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Konstantinos Karanasos updated YARN-6593: ----------------------------------------- Attachment: YARN-6593.002.patch Adding new version of the patch. I added new methods to all classes to make the creation of constraints simpler. Please give it a look. Whenever we had too many fields, I introduced a Builder inner class. In the rest, I just added new static methods for building constraints. Also, I did not coalesce the simple and compound constraints, I feel it will make the proto too complicated, and will allow users to create objects that don't make sense. I had an offline chat with [~chris.douglas] and [~curino], and they were not supportive of unifying the protos (it will allow a compound constraint to be child of a simple constraint). Further, subclassing the classes without having support of the protobufs will also lead to complications. The only downside of this approach I can see, is that we will have the intermediate {{PlacementConstraint}} objects when creating very complex CompoundConstraints. I think with the new methods I added, it will be easy to write such constraints. If we want to further simplify the creation, we could also bring the object creation methods from the Simple and Compound Constraints to the PlacementConstraint, but not sure it's worth doing yet. We can add those methods later if there is indeed need for them in practice. Let me know what you think. I also introduced a {{PlacementDelayConf}} object that includes all fields related to the DELAYED_OR configuration. I did not add yet the tests in the {{TestPBRecordImpl}} -- will do so when we finalize the rest. > [API] Introduce Placement Constraint object > ------------------------------------------- > > Key: YARN-6593 > URL: https://issues.apache.org/jira/browse/YARN-6593 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Konstantinos Karanasos > Assignee: Konstantinos Karanasos > Attachments: YARN-6593.001.patch, YARN-6593.002.patch > > > This JIRA introduces an object for defining placement constraints. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org