From reviews-return-53693-apmail-mesos-reviews-archive=mesos.apache.org@mesos.apache.org Fri Jan 13 08:17:22 2017 Return-Path: X-Original-To: apmail-mesos-reviews-archive@minotaur.apache.org Delivered-To: apmail-mesos-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8DF3E193A9 for ; Fri, 13 Jan 2017 08:17:22 +0000 (UTC) Received: (qmail 31271 invoked by uid 500); 13 Jan 2017 08:17:22 -0000 Delivered-To: apmail-mesos-reviews-archive@mesos.apache.org Received: (qmail 31238 invoked by uid 500); 13 Jan 2017 08:17:22 -0000 Mailing-List: contact reviews-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@mesos.apache.org Delivered-To: mailing list reviews@mesos.apache.org Received: (qmail 31220 invoked by uid 99); 13 Jan 2017 08:17:22 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2017 08:17:22 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id C5E722F95DE; Fri, 13 Jan 2017 08:17:21 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6608925357700371348==" MIME-Version: 1.0 Subject: Re: Review Request 55461: Made resource reservation validation multi-role aware. From: Jay Guo To: Benjamin Mahler , Jay Guo , Guangya Liu Cc: Benjamin Bannier , mesos Date: Fri, 13 Jan 2017 08:17:21 -0000 Message-ID: <20170113081721.25657.28485@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Jay Guo X-ReviewGroup: mesos X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/55461/ X-Sender: Jay Guo References: <20170112145414.1677.2419@reviews.apache.org> In-Reply-To: <20170112145414.1677.2419@reviews.apache.org> Reply-To: Jay Guo X-ReviewRequest-Repository: mesos --===============6608925357700371348== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/55461/#review161489 ----------------------------------------------------------- When a resource with `*` is offered to a multi-role framework, how does the framework decide which role to reserve the resource for? - Jay Guo On Jan. 12, 2017, 10:54 p.m., Benjamin Bannier wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/55461/ > ----------------------------------------------------------- > > (Updated Jan. 12, 2017, 10:54 p.m.) > > > Review request for mesos, Benjamin Mahler, Jay Guo, and Guangya Liu. > > > Repository: mesos > > > Description > ------- > > This updates the resource reservation validation for frameworks which > can have multiple roles. During a deprecation period 'FrameworkInfo' > will have fields for both 'role' and 'roles', however the validation > function works with just an optional set of roles. Here an empty set > captures the previous semantics of either having an empty 'role' field > or 'role' set as '*'. This forces the callers to properly construct a > set of framework roles from the available information. An optional set > is used in order to accommodate callers which have no information > about the framework's roles, and ultimately disables validation taking > that information into account. > > > Diffs > ----- > > src/master/master.cpp 1746a88953dbdc148d98881bcf7027b62ad6b040 > src/master/validation.hpp 57e81779ff7444904c2ad7bad33aaf9167b98d05 > src/master/validation.cpp 96aa36585ded4bd7cf98526f710ccbc4f23b1f0f > src/tests/master_validation_tests.cpp e5d55e03648cb218d42adc594d6fa7d40ea9bcbb > > Diff: https://reviews.apache.org/r/55461/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Benjamin Bannier > > --===============6608925357700371348==--