Return-Path: X-Original-To: apmail-aurora-dev-archive@minotaur.apache.org Delivered-To: apmail-aurora-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5D7A910360 for ; Mon, 6 Jan 2014 21:41:11 +0000 (UTC) Received: (qmail 18742 invoked by uid 500); 6 Jan 2014 21:41:11 -0000 Delivered-To: apmail-aurora-dev-archive@aurora.apache.org Received: (qmail 18720 invoked by uid 500); 6 Jan 2014 21:41:11 -0000 Mailing-List: contact dev-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.incubator.apache.org Delivered-To: mailing list dev@aurora.incubator.apache.org Received: (qmail 18712 invoked by uid 99); 6 Jan 2014 21:41:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jan 2014 21:41:11 +0000 X-ASF-Spam-Status: No, hits=-1997.9 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 06 Jan 2014 21:41:08 +0000 Received: (qmail 18544 invoked by uid 99); 6 Jan 2014 21:40:46 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jan 2014 21:40:46 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id E3C241D4170; Mon, 6 Jan 2014 21:40:45 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3568363389198320647==" MIME-Version: 1.0 Subject: Re: Review Request 16629: Client quota check (server side) From: "Maxim Khutornenko" To: "Bill Farner" , "Kevin Sweeney" Cc: "Maxim Khutornenko" , "Aurora" Date: Mon, 06 Jan 2014 21:40:45 -0000 Message-ID: <20140106214045.1150.3462@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Maxim Khutornenko" X-ReviewGroup: Aurora X-ReviewRequest-URL: https://reviews.apache.org/r/16629/ X-Sender: "Maxim Khutornenko" References: <20140106213043.1150.24669@reviews.apache.org> In-Reply-To: <20140106213043.1150.24669@reviews.apache.org> Reply-To: "Maxim Khutornenko" X-ReviewRequest-Repository: aurora X-Virus-Checked: Checked by ClamAV on apache.org --===============3568363389198320647== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit > On Jan. 6, 2014, 9:30 p.m., Bill Farner wrote: > > src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java, line 597 > > > > > > We now have (at least) two places that get the current quota usage for a role. Worse yet, i argue that both of these are flawed since they don't account for cron jobs (the policy on that probably warrants wider discussion). For the time being, i suggest you extract a helper function to share between this and QuotaFilter. My intention is to completely deprecate QuotaFilter and related. Here is the original plan (sorry for not communicating it earlier): 1. Enable quota client checks for job update (client side); 2. Expose consumed quota info to the client (server side); 3. Enable quota client checks for job create (client side); 4. Deploy all changes in prod; 5. Deprecate (remove) everything but Quotas.java under org.apache.aurora.scheduler.quota; This CR is part 2 from the above plan. Step 3 will also cover cron job quota checks at creation time. I agree, we would need more discussion around cron job quota enforcement at task launch (if we ever decide to do so). Does it make sense? - Maxim ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/16629/#review31265 ----------------------------------------------------------- On Jan. 4, 2014, 1:53 a.m., Maxim Khutornenko wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/16629/ > ----------------------------------------------------------- > > (Updated Jan. 4, 2014, 1:53 a.m.) > > > Review request for Aurora, Kevin Sweeney and Bill Farner. > > > Repository: aurora > > > Description > ------- > > Part 2: Server side changes for the client quota check. > > Note: api.thrift changes are duplicated from part 1: https://reviews.apache.org/r/16444/ and will race to submission with it. > > > Diffs > ----- > > src/main/java/org/apache/aurora/scheduler/storage/testing/StorageTestUtil.java 8fb51d69be6d370f9f010c797b2c1205b38a04f5 > src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java c1a11bdb91c5e764864324d26248d1783af8048b > src/main/thrift/org/apache/aurora/gen/api.thrift 480b8f472bcfbe547a91c41638250350a0110334 > src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 91c1c24448092e1b3454844ab8074ed030383594 > > Diff: https://reviews.apache.org/r/16629/diff/ > > > Testing > ------- > > gradle build > > > Thanks, > > Maxim Khutornenko > > --===============3568363389198320647==--