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 C241A200BE2 for ; Thu, 15 Dec 2016 20:21:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C0D52160B2D; Thu, 15 Dec 2016 19:21:59 +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 16F65160B15 for ; Thu, 15 Dec 2016 20:21:58 +0100 (CET) Received: (qmail 14803 invoked by uid 500); 15 Dec 2016 19:21: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 14567 invoked by uid 99); 15 Dec 2016 19:21:58 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2016 19:21:58 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id A3F0A2FD7F6; Thu, 15 Dec 2016 19:21:56 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============9174226523893098321==" MIME-Version: 1.0 Subject: Re: Review Request 54774: Avoid double writing job updates to the Scheduler Snapshot From: Joshua Cohen To: Santhosh Kumar Shanmugham , Joshua Cohen , Zameer Manji Cc: Aurora , David McLaughlin Date: Thu, 15 Dec 2016 19:21:56 -0000 Message-ID: <20161215192156.17251.42735@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Joshua Cohen X-ReviewGroup: Aurora X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/54774/ X-Sender: Joshua Cohen X-ReviewBoard-ShipIt: 1 References: <20161215181618.17252.86893@reviews.apache.org> In-Reply-To: <20161215181618.17252.86893@reviews.apache.org> Reply-To: Joshua Cohen X-ReviewRequest-Repository: aurora archived-at: Thu, 15 Dec 2016 19:21:59 -0000 --===============9174226523893098321== 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/54774/#review159347 ----------------------------------------------------------- Fix it, then Ship it! lgtm modulo the below. src/main/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImpl.java (line 128) This `@Timed` annotation is on the wrong method now. - Joshua Cohen On Dec. 15, 2016, 6:16 p.m., David McLaughlin wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/54774/ > ----------------------------------------------------------- > > (Updated Dec. 15, 2016, 6:16 p.m.) > > > Review request for Aurora, Joshua Cohen, Santhosh Kumar Shanmugham, and Zameer Manji. > > > Bugs: AURORA-1861 > https://issues.apache.org/jira/browse/AURORA-1861 > > > Repository: aurora > > > Description > ------- > > Motivation: Thanks to the mybatis query metrics we added, we found that double writing Snapshot fields for H2 stores adds considerable overhead to our snapshot creation time. > > Snapshots are also written as backups, and many operators choose to process backups offline for analytics, rather than query the live scheduler (due to not being able to scale reads horizontally). So this allows operators to enable/disable the hydrated fields as needed. > > > Diffs > ----- > > src/main/java/org/apache/aurora/scheduler/storage/backup/TemporaryStorage.java 3fa408e283f91b313633959ea6d2e730d4dc0771 > src/main/java/org/apache/aurora/scheduler/storage/log/LogStorageModule.java 7dcd1bfcf303cf374e9a6627cb6c632ccea098f2 > src/main/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImpl.java 853780bc68400489578ed3692920aafcec42c999 > src/test/java/org/apache/aurora/scheduler/storage/backup/RecoveryTest.java 7a11850e217dcb0148e4a4d33542c95b2e53a726 > src/test/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImplIT.java cf0a8f3ea11e9c48d1f16441af54dc781b33bdfc > > Diff: https://reviews.apache.org/r/54774/diff/ > > > Testing > ------- > > ./gradlew test > > I'll apply this to one of our test clusters before merging to master too. > > > Thanks, > > David McLaughlin > > --===============9174226523893098321==--