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 2B2C31935C for ; Fri, 1 Apr 2016 06:04:39 +0000 (UTC) Received: (qmail 22908 invoked by uid 500); 1 Apr 2016 06:04:39 -0000 Delivered-To: apmail-aurora-reviews-archive@aurora.apache.org Received: (qmail 22848 invoked by uid 500); 1 Apr 2016 06:04:39 -0000 Mailing-List: contact reviews-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@aurora.apache.org Delivered-To: mailing list reviews@aurora.apache.org Received: (qmail 22832 invoked by uid 99); 1 Apr 2016 06:04:38 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Apr 2016 06:04:38 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id B98E02A540A; Fri, 1 Apr 2016 06:04:36 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0771307637833515702==" MIME-Version: 1.0 Subject: Re: Review Request 45511: AURORA-1493: create ELB-friendly endpoint to detect leading scheduler From: Aurora ReviewBot To: Bill Farner Cc: Ashwin Murthy , Aurora , Aurora ReviewBot Date: Fri, 01 Apr 2016 06:04:36 -0000 Message-ID: <20160401060436.23781.94695@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Aurora ReviewBot X-ReviewGroup: Aurora X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/45511/ X-Sender: Aurora ReviewBot References: <20160401054917.5121.73589@reviews.apache.org> In-Reply-To: <20160401054917.5121.73589@reviews.apache.org> X-ReviewBoard-Diff-For: src/test/java/org/apache/aurora/scheduler/http/LeaderHealthTest.java X-ReviewBoard-Diff-For: docs/operations/endpoints.md X-ReviewBoard-Diff-For: src/main/java/org/apache/aurora/scheduler/http/LeaderHealth.java Reply-To: Aurora ReviewBot X-ReviewRequest-Repository: aurora --===============0771307637833515702== 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/45511/#review126553 ----------------------------------------------------------- Master (17ade11) is red with this patch. ./build-support/jenkins/build.sh :generateBuildProperties :processResources :classes :jar :startScripts :distTar :distZip :assemble :compileJmhJavaNote: /home/jenkins/jenkins-slave/workspace/AuroraBot/src/jmh/java/org/apache/aurora/benchmark/fakes/FakeSchedulerDriver.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. :processJmhResources UP-TO-DATE :jmhClasses :checkstyleJmh :jsHint :checkstyleMain :compileTestJava/home/jenkins/jenkins-slave/workspace/AuroraBot/src/test/java/org/apache/aurora/scheduler/thrift/aop/MockDecoratedThrift.java:38: Note: Wrote forwarder org.apache.aurora.scheduler.thrift.aop.MockDecoratedThriftForwarder @Forward(AnnotatedAuroraAdmin.class) ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. :processTestResources :testClasses :checkstyleTest[ant:checkstyle] /home/jenkins/jenkins-slave/workspace/AuroraBot/src/test/java/org/apache/aurora/scheduler/http/LeaderHealthTest.java:36: error: Wrong order for 'org.easymock.EasyMock.capture' import. Order should be: java, javax, scala, com, net, org. Each group should be separated by a single blank line. FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':checkstyleTest'. > Checkstyle rule violations were found. See the report at: file:///home/jenkins/jenkins-slave/workspace/AuroraBot/dist/reports/checkstyle/test.html * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 5 mins 49.756 secs I will refresh this build result if you post a review containing "@ReviewBot retry" - Aurora ReviewBot On April 1, 2016, 5:49 a.m., Ashwin Murthy wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/45511/ > ----------------------------------------------------------- > > (Updated April 1, 2016, 5:49 a.m.) > > > Review request for Aurora and Bill Farner. > > > Repository: aurora > > > Description > ------- > > AURORA-1493: create ELB-friendly endpoint to detect leading scheduler. The fix is to add a new endpoint - "/leaderhealth" which returns http status code 200 (OK) if the instance is the leader. If the instance is not the leader but a leading exists, returns 500 (Internal server error). If there is no leader at all, returns 503 (Service unavailable) > > > Diffs > ----- > > RELEASE-NOTES.md 6fc3afeb5a9e2f2c2ba944fbc6d611d3494eb779 > docs/operations/endpoints.md PRE-CREATION > src/main/java/org/apache/aurora/scheduler/http/LeaderHealth.java PRE-CREATION > src/test/java/org/apache/aurora/scheduler/http/LeaderHealthTest.java PRE-CREATION > > Diff: https://reviews.apache.org/r/45511/diff/ > > > Testing > ------- > > Added new unit test > > > Thanks, > > Ashwin Murthy > > --===============0771307637833515702==--