Return-Path: X-Original-To: apmail-aurora-reviews-archive@minotaur.apache.org Delivered-To: apmail-aurora-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 A45A111FD4 for ; Mon, 22 Sep 2014 20:38:58 +0000 (UTC) Received: (qmail 3956 invoked by uid 500); 22 Sep 2014 20:38:58 -0000 Delivered-To: apmail-aurora-reviews-archive@aurora.apache.org Received: (qmail 3918 invoked by uid 500); 22 Sep 2014 20:38:58 -0000 Mailing-List: contact reviews-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@aurora.incubator.apache.org Delivered-To: mailing list reviews@aurora.incubator.apache.org Received: (qmail 3903 invoked by uid 99); 22 Sep 2014 20:38:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Sep 2014 20:38:58 +0000 X-ASF-Spam-Status: No, hits=-1998.6 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, 22 Sep 2014 20:38:52 +0000 Received: (qmail 265 invoked by uid 99); 22 Sep 2014 20:38:32 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Sep 2014 20:38:32 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id C65671DD94D; Mon, 22 Sep 2014 20:38:29 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6993032919010868218==" MIME-Version: 1.0 Subject: Re: Review Request 25857: Disable updater by default in prod. From: "Maxim Khutornenko" To: "Bill Farner" Cc: "Aurora" , "Maxim Khutornenko" Date: Mon, 22 Sep 2014 20:38:29 -0000 Message-ID: <20140922203829.15000.1635@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/25857/ X-Sender: "Maxim Khutornenko" References: <20140920021410.16263.57715@reviews.apache.org> In-Reply-To: <20140920021410.16263.57715@reviews.apache.org> Reply-To: "Maxim Khutornenko" X-ReviewRequest-Repository: aurora X-Virus-Checked: Checked by ClamAV on apache.org --===============6993032919010868218== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Sept. 20, 2014, 2:14 a.m., Bill Farner wrote: > > src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java, line 1375 > > > > > > How about: > > > > return addMessage( > > emptyResponse(), > > INVALID_REQUEST, > > "Server-side updates are disabled on this cluster."); Done. > On Sept. 20, 2014, 2:14 a.m., Bill Farner wrote: > > src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java, line 286 > > > > > > I see why you went this route, but it's a precedent i'd rather not set. How about a guice-bound `@EnableUpdater Boolean`. Then, create a new test class that does nothing but create necessary mocks to construct an instance of SchedulerThriftInterface and test the flag. > > Maxim Khutornenko wrote: > This will result in a much larger diff for something that is only used temporarily and will go away once all updater kinks are worked out. I'd rather go with a smaller diff and document it as testing anti-pattern not to be used for anything permanent. > > Bill Farner wrote: > A fair argument, but i'm still a big anti-fan of using reflection like this. I'd much rather the field be public than have false encapsulation. Refactored. > On Sept. 20, 2014, 2:14 a.m., Bill Farner wrote: > > src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java, line 251 > > > > > > While you're here, can you remove this constructor overload? It's unused. Done. > On Sept. 20, 2014, 2:14 a.m., Bill Farner wrote: > > src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java, line 188 > > > > > > "Enable the async updater. Use at your own risk, this feature is not yet complete." Done. > On Sept. 20, 2014, 2:14 a.m., Bill Farner wrote: > > src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java, line 187 > > > > > > How about `enable_beta_updater` Done. - Maxim ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/25857/#review54071 ----------------------------------------------------------- On Sept. 19, 2014, 11:10 p.m., Maxim Khutornenko wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/25857/ > ----------------------------------------------------------- > > (Updated Sept. 19, 2014, 11:10 p.m.) > > > Review request for Aurora and Bill Farner. > > > Bugs: AURORA-732 > https://issues.apache.org/jira/browse/AURORA-732 > > > Repository: aurora > > > Description > ------- > > Added command line arg to control startJobUpdate. > > > Diffs > ----- > > src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 83ac034cff009530e5e16c0613b9d085f3b908d8 > src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 336cada625b85618486660fc24f3e83a312609f8 > > Diff: https://reviews.apache.org/r/25857/diff/ > > > Testing > ------- > > gradle -Pq build > > > Thanks, > > Maxim Khutornenko > > --===============6993032919010868218==--