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 D8B17200D45 for ; Wed, 8 Nov 2017 15:37:58 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D7891160BE0; Wed, 8 Nov 2017 14:37:58 +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 094AC160BDA for ; Wed, 8 Nov 2017 15:37:57 +0100 (CET) Received: (qmail 69319 invoked by uid 500); 8 Nov 2017 14:37:57 -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 69307 invoked by uid 99); 8 Nov 2017 14:37:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Nov 2017 14:37:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 2F6DED1500; Wed, 8 Nov 2017 14:37:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.25 X-Spam-Level: *** X-Spam-Status: No, score=3.25 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, KAM_LOTSOFHASH=0.25, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id u3cROQGFMUV9; Wed, 8 Nov 2017 14:37:53 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E3AA75FD83; Wed, 8 Nov 2017 14:37:52 +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 877C7E06C7; Wed, 8 Nov 2017 14:37:52 +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 7EDF1C408AF; Wed, 8 Nov 2017 14:37:52 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6702249001264547654==" MIME-Version: 1.0 Subject: Re: Review Request 60942: Remove task level resource fields from thrift interface and db From: =?utf-8?q?Nicol=C3=A1s_Donatucci?= To: Joshua Cohen , Stephan Erb , Zameer Manji Cc: Bill Farner , Aurora , =?utf-8?q?Nicol=C3=A1s_Donatucci?= , Aurora ReviewBot , Renan DelValle Date: Wed, 08 Nov 2017 14:37:52 -0000 Message-ID: <20171108143752.35837.15999@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: =?utf-8?q?Nicol=C3=A1s_Donatucci_=3Cnoreply=40reviews=2Eapache=2Eor?=@reviews.apache.org, =?utf-8?q?g=3E?=@reviews.apache.org X-ReviewGroup: Aurora X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/60942/ X-Sender: =?utf-8?q?Nicol=C3=A1s_Donatucci_=3Cnoreply=40reviews=2Eapache=2E?= =?utf-8?q?org=3E?= References: <20170824190532.13943.94972@reviews-vm2.apache.org> In-Reply-To: <20170824190532.13943.94972@reviews-vm2.apache.org> Reply-To: =?utf-8?q?Nicol=C3=A1s_Donatucci_=3Cndonatucci=40medallia=2Ecom?=@reviews.apache.org, =?utf-8?q?=3E?=@reviews.apache.org X-ReviewRequest-Repository: aurora archived-at: Wed, 08 Nov 2017 14:37:59 -0000 --===============6702249001264547654== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/60942/ ----------------------------------------------------------- (Updated Nov. 8, 2017, 2:37 p.m.) Review request for Aurora, Joshua Cohen, Stephan Erb, and Zameer Manji. Changes ------- Removed DB Migration Bugs: AURORA-1707 https://issues.apache.org/jira/browse/AURORA-1707 Repository: aurora Description (updated) ------- Removed task level resource fields from the DB and the thrift-API. To do this, a new DB migration was added. When upgrading, it just drops the task level resource fields. When downgrading, it creates the fields again and populates them with information from the task_resource table. IMPORTANT: Having an issue when going from 0.18.0 to patched version and then to 0.18.0 again. "E1106 19:16:28.752 [LeaderSelector-0, SchedulerLifecycle] Caught unchecked exception: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalArgumentException: Multiple entries with same key" [4:23] org.apache.aurora.scheduler.storage.db.views.DbTaskConfig@182dcd47. To index multiple values under a key, use Multimaps.index. Will investigate more, but I'm not really getting what is going on. Issue Related: AURORA-1707 Diffs (updated) ----- RELEASE-NOTES.md 5122c49354811bdb53bd5a0febb29c5d8a736b0d api/src/main/thrift/org/apache/aurora/gen/api.thrift c869493c06499340d73e1b219e17a0d7d8b5ead9 src/main/java/org/apache/aurora/scheduler/base/TaskTestUtil.java 7c223eae69503fe1d5bf34c430438637abcbcb9b src/main/java/org/apache/aurora/scheduler/storage/db/TaskConfigManager.java d2eb6aa6e4a155b2d28debab2ca10dfc76d57213 src/main/java/org/apache/aurora/scheduler/storage/db/TaskConfigMapper.java cda55c55680a19ed421299a8949299b21949787b src/main/java/org/apache/aurora/scheduler/storage/db/migration/V004_CreateTaskResourceTable.java af106a8a9ee8c14122e98bcc0ec44b616f21d61f src/main/java/org/apache/aurora/scheduler/storage/db/views/DbTaskConfig.java 138cd5316adc73eed24fc7accc53885dd5d5bee5 src/main/python/apache/aurora/client/cli/diff_formatter.py 78717774aa3fbaf83a5fb850bc9f9f4a4038d70f src/main/python/apache/aurora/client/cli/jobs.py b79ae56bee0e5692cacf1e66f4a4126b06aaffdc src/main/resources/org/apache/aurora/scheduler/storage/db/TaskConfigMapper.xml 5422183e4a1fe122fc0e1aa871aa75ae102e322d src/main/resources/org/apache/aurora/scheduler/storage/db/schema.sql 7a86f47af67adb3e488381d30ddf424549deefbc src/test/java/org/apache/aurora/scheduler/http/TestUtils.java 689482c9f6c49bcca781834566edeb975d2f3af2 src/test/java/org/apache/aurora/scheduler/storage/db/RowGarbageCollectorTest.java 74c9d1d2fba94971106c148ac76d5a76dab6a7b4 src/test/java/org/apache/aurora/scheduler/thrift/Fixtures.java 43e32eede27bbf26363a3fd1ca34ffe6f8c01a73 src/test/java/org/apache/aurora/scheduler/updater/UpdateAgentReserverImplTest.java 1bc2a778ad3f1543a055023f9ec3fe9e4a9523e3 src/test/python/apache/aurora/client/cli/test_status.py b0b7f96d8148f0dd1f6f45d1c5c6f830cabcfd5d src/test/python/apache/aurora/client/cli/util.py 476b8c2951f315db0b9983bb8fbed0d7efc155aa src/test/python/apache/aurora/config/test_resources.py 25a20f0b702189744a26b85053db34c37ff5b03c Diff: https://reviews.apache.org/r/60942/diff/9/ Changes: https://reviews.apache.org/r/60942/diff/8-9/ Testing ------- src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh 1 - Created a new VM with a fresh Aurora 0.18.0, ran the tests so that the db would have something. Then upgraded to patched version and ran the tests again. Everything worked and task level resource fields were no longer there. 2 - Created a new VM with a fresh patched version, ran the tests so that the db would have something. Then downgraded to 0.18.0 and ran the tests again. Everything worked and task level resources were there, with the correct backfilled values. Thanks, Nicolás Donatucci --===============6702249001264547654==--