Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3D14F200D30 for ; Mon, 30 Oct 2017 22:30:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3BA37160BE4; Mon, 30 Oct 2017 21:30:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 807BC1609D5 for ; Mon, 30 Oct 2017 22:29:59 +0100 (CET) Received: (qmail 76013 invoked by uid 500); 30 Oct 2017 21:29:58 -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 76002 invoked by uid 99); 30 Oct 2017 21:29:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2017 21:29:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AA2071805C8; Mon, 30 Oct 2017 21:29:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.249 X-Spam-Level: *** X-Spam-Status: No, score=3.249 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, KAM_LOTSOFHASH=0.25, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id tT_rKpOLnFOB; Mon, 30 Oct 2017 21:29:55 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 5CC6B5FCE9; Mon, 30 Oct 2017 21:29:55 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B59EFE0555; Mon, 30 Oct 2017 21:29:54 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id DE854C40ADD; Mon, 30 Oct 2017 21:29:52 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============2221760674977423117==" MIME-Version: 1.0 Subject: Re: Review Request 63418: Remove endpoint.thrift, ServiceInstance is never serialized to thrift From: Stephan Erb To: Jordan Ly Cc: Bill Farner , Aurora ReviewBot , Aurora Date: Mon, 30 Oct 2017 21:29:51 -0000 Message-ID: <20171030212951.50427.99656@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Stephan Erb X-ReviewGroup: Aurora X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/63418/ X-Sender: Stephan Erb References: <20171030180912.50230.54017@reviews-vm2.apache.org> In-Reply-To: <20171030180912.50230.54017@reviews-vm2.apache.org> X-ReviewBoard-Diff-For: commons/src/main/resources/org/apache/aurora/common/net/http/handlers/thrift.st X-ReviewBoard-Diff-For: commons/src/test/java/org/apache/aurora/common/zookeeper/JsonCodecTest.java X-ReviewBoard-Diff-For: src/main/java/org/apache/aurora/scheduler/discovery/ServiceInstance.java X-ReviewBoard-Diff-For: commons/src/main/thrift/org/apache/aurora/common/thrift/endpoint.thrift X-ReviewBoard-Diff-For: commons/src/main/java/org/apache/aurora/common/zookeeper/Encoding.java X-ReviewBoard-Diff-For: commons/src/test/java/org/apache/aurora/common/zookeeper/EncodingTest.java X-ReviewBoard-Diff-For: src/main/java/org/apache/aurora/scheduler/discovery/Encoding.java X-ReviewBoard-Diff-For: commons/src/main/java/org/apache/aurora/common/zookeeper/JsonCodec.java X-ReviewBoard-Diff-For: commons/src/main/java/org/apache/aurora/common/io/Codec.java X-ReviewBoard-Diff-For: commons/src/main/java/org/apache/aurora/common/thrift/Util.java X-ReviewBoard-Diff-For: src/test/java/org/apache/aurora/scheduler/discovery/EncodingTest.java Reply-To: Stephan Erb X-ReviewRequest-Repository: aurora archived-at: Mon, 30 Oct 2017 21:30:00 -0000 --===============2221760674977423117== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Oct. 30, 2017, 7:09 p.m., Stephan Erb wrote: > > src/main/java/org/apache/aurora/scheduler/discovery/ServiceInstance.java > > Lines 45 (patched) > > > > > > Should we just hardcode ALIVE here? Aurora is not using anything else. > > > > We could also add comments to the enum that all other state are deprecated and not used. > > Bill Farner wrote: > Thanks for the nudge, this crossed my mind as well while making the change. I've gone ahead and buried the field to effectively hard-code it. Thanks. LGTM - Stephan ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63418/#review189621 ----------------------------------------------------------- On Oct. 30, 2017, 5:36 p.m., Bill Farner wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/63418/ > ----------------------------------------------------------- > > (Updated Oct. 30, 2017, 5:36 p.m.) > > > Review request for Aurora, Jordan Ly and Stephan Erb. > > > Repository: aurora > > > Description > ------- > > This enables removal of some unnecessary complexity in the build (commons no > longer needs thrift) and the unused Codec abstraction (we always encode in > JSON). > > > Diffs > ----- > > build.gradle 1c1d3811c861dc6ff16bbd9ce3daefb5833f52df > commons/src/main/java/org/apache/aurora/common/io/Codec.java 94d1e3654767d8e5c0280595d0944c2fcb68ef90 > commons/src/main/java/org/apache/aurora/common/thrift/Util.java 4ef7f49b7953b56b592b2f8ac3e04df738615211 > commons/src/main/java/org/apache/aurora/common/zookeeper/Encoding.java 204f5c45b6810a82bdb74fb2d27fe2def6fd568a > commons/src/main/java/org/apache/aurora/common/zookeeper/JsonCodec.java 9d316088ffd51b2dce816e6cc18d8e2a4a23cfd5 > commons/src/main/resources/org/apache/aurora/common/net/http/handlers/thrift.st 0586653e1b22a96b0ce71e2fc979d6d3a71d1677 > commons/src/main/thrift/org/apache/aurora/common/thrift/endpoint.thrift 87da2e13db900a4b06f50d89c9559ecfe202508e > commons/src/test/java/org/apache/aurora/common/zookeeper/EncodingTest.java 16c017104c4696a985eefa23e1611300a7357259 > commons/src/test/java/org/apache/aurora/common/zookeeper/JsonCodecTest.java 6cf335dd451ca05bb511d524ff5590b219505cae > src/main/java/org/apache/aurora/scheduler/app/ServiceGroupMonitor.java a1329fd5010fadbf6bceeb2ae0476a6261830492 > src/main/java/org/apache/aurora/scheduler/discovery/CuratorServiceDiscoveryModule.java 77f90eead2812e24d0d56e289bba7944075ee3bc > src/main/java/org/apache/aurora/scheduler/discovery/CuratorServiceGroupMonitor.java eba56bea89961fd8e6507eaf4180f700e4b030c4 > src/main/java/org/apache/aurora/scheduler/discovery/CuratorSingletonService.java 2847c41b15b64b6a91bae295a9e5a96680b0c816 > src/main/java/org/apache/aurora/scheduler/discovery/Encoding.java PRE-CREATION > src/main/java/org/apache/aurora/scheduler/discovery/ServiceInstance.java PRE-CREATION > src/main/java/org/apache/aurora/scheduler/http/LeaderRedirect.java bc0e2a86c0a8a354d95350a3d2f63514ee26da70 > src/main/java/org/apache/aurora/scheduler/http/StructDump.java 3ed256b30a0492d65560344c3fc038d8d93f2ec0 > src/test/java/org/apache/aurora/scheduler/discovery/BaseCuratorDiscoveryTest.java 02c81838c52245aad3c582e0dea62f4ca3693379 > src/test/java/org/apache/aurora/scheduler/discovery/CuratorServiceGroupMonitorTest.java e6b57ee7d0af234a60794e10c63c2670f67e6ccd > src/test/java/org/apache/aurora/scheduler/discovery/CuratorSingletonServiceTest.java 946a78e185962b1459ce0dc32c55a036d04a7e19 > src/test/java/org/apache/aurora/scheduler/discovery/EncodingTest.java PRE-CREATION > src/test/java/org/apache/aurora/scheduler/http/AbstractJettyTest.java f3ae5a566b555b753230629897847c1bb5abc3b1 > src/test/java/org/apache/aurora/scheduler/http/LeaderRedirectTest.java a7cc046d97d7b817a5496a6a7190142375b7a8a1 > > > Diff: https://reviews.apache.org/r/63418/diff/2/ > > > Testing > ------- > > e2e tests pass > > > Thanks, > > Bill Farner > > --===============2221760674977423117==--