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 77BC610602 for ; Tue, 29 Apr 2014 22:39:03 +0000 (UTC) Received: (qmail 64043 invoked by uid 500); 29 Apr 2014 22:39:02 -0000 Delivered-To: apmail-aurora-reviews-archive@aurora.apache.org Received: (qmail 64000 invoked by uid 500); 29 Apr 2014 22:39:02 -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 63990 invoked by uid 99); 29 Apr 2014 22:39:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2014 22:39:02 +0000 X-ASF-Spam-Status: No, hits=-1998.5 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; Tue, 29 Apr 2014 22:39:00 +0000 Received: (qmail 63589 invoked by uid 99); 29 Apr 2014 22:38:40 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2014 22:38:40 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 480701D72D6; Tue, 29 Apr 2014 22:38:34 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4248790196057665752==" MIME-Version: 1.0 Subject: Re: Review Request 20808: Adding unhandled error logging into AsyncModule. From: "Bill Farner" To: "Bill Farner" Cc: "Aurora" , "Maxim Khutornenko" Date: Tue, 29 Apr 2014 22:38:33 -0000 Message-ID: <20140429223833.1869.74186@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Bill Farner" X-ReviewGroup: Aurora X-ReviewRequest-URL: https://reviews.apache.org/r/20808/ X-Sender: "Bill Farner" References: <20140429200423.3313.57408@reviews.apache.org> In-Reply-To: <20140429200423.3313.57408@reviews.apache.org> Reply-To: "Bill Farner" X-ReviewRequest-Repository: aurora X-Virus-Checked: Checked by ClamAV on apache.org --===============4248790196057665752== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit > On April 29, 2014, 8:04 p.m., Bill Farner wrote: > > src/main/java/org/apache/aurora/scheduler/base/AsyncUtil.java, line 48 > > > > > > Nice! To really polish this off, you could accept a Logger to prove the bug fix in a unit test. > > Maxim Khutornenko wrote: > Well, I was trying to avoid just that as most of the current consumers don't declare their own Logger yet. I guess we don't have a better option here. I should have been more clear, in my head i was thinking of an overload on the method, where the default (and typically used) would still use the locally-declared logger. I'm fine with your preference to proceed. - Bill ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/20808/#review41768 ----------------------------------------------------------- On April 29, 2014, 9:07 p.m., Maxim Khutornenko wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/20808/ > ----------------------------------------------------------- > > (Updated April 29, 2014, 9:07 p.m.) > > > Review request for Aurora and Bill Farner. > > > Bugs: AURORA-366 > https://issues.apache.org/jira/browse/AURORA-366 > > > Repository: aurora > > > Description > ------- > > Moved ScheduledThreadPoolExecutor creation into AsyncUtil to share across. > > > Diffs > ----- > > src/main/java/org/apache/aurora/scheduler/SchedulerModule.java 00923723a60866145d481ea505b9a51d0e54832c > src/main/java/org/apache/aurora/scheduler/async/AsyncModule.java 535acd21abda1473c1a364230bbd5b6b92e228bd > src/main/java/org/apache/aurora/scheduler/async/TaskGroups.java 6aff091d9afefc73af666f980ef96acd726aec20 > src/main/java/org/apache/aurora/scheduler/base/AsyncUtil.java PRE-CREATION > src/main/java/org/apache/aurora/scheduler/sla/SlaModule.java 0c6a2b8ea40c5459950037bc5683b5072f6731f5 > src/main/java/org/apache/aurora/scheduler/stats/AsyncStatsModule.java 6c723393000133452afd841cbaef4dad3c5806b5 > src/main/java/org/apache/aurora/scheduler/storage/log/LogStorage.java 5512a447e28d5166681cc7dcc82bf60a5500b162 > src/test/java/org/apache/aurora/scheduler/base/AsyncUtilTest.java PRE-CREATION > > Diff: https://reviews.apache.org/r/20808/diff/ > > > Testing > ------- > > Manual testing via gradle run (any ideas on how to unit test this properly without passing a logger as arg are welcome). > > > Thanks, > > Maxim Khutornenko > > --===============4248790196057665752==--