Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B98DAD272 for ; Tue, 26 Feb 2013 21:33:16 +0000 (UTC) Received: (qmail 32745 invoked by uid 500); 26 Feb 2013 21:33:16 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 32690 invoked by uid 500); 26 Feb 2013 21:33:16 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 32682 invoked by uid 99); 26 Feb 2013 21:33:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 21:33:16 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Alex.Huang@citrix.com designates 66.165.176.89 as permitted sender) Received: from [66.165.176.89] (HELO SMTP.CITRIX.COM) (66.165.176.89) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 21:33:08 +0000 X-IronPort-AV: E=Sophos;i="4.84,743,1355097600"; d="scan'208";a="9826812" Received: from sjcpmailmx01.citrite.net ([10.216.14.74]) by FTLPIPO01.CITRIX.COM with ESMTP/TLS/RC4-MD5; 26 Feb 2013 21:32:46 +0000 Received: from SJCPMAILBOX01.citrite.net ([10.216.4.72]) by SJCPMAILMX01.citrite.net ([10.216.14.74]) with mapi; Tue, 26 Feb 2013 13:32:46 -0800 From: Alex Huang To: "cloudstack-dev@incubator.apache.org" Date: Tue, 26 Feb 2013 13:32:50 -0800 Subject: RE: [ACS][BUG] Master build breaks due to sql updates Thread-Topic: [ACS][BUG] Master build breaks due to sql updates Thread-Index: Ac4UYI/vSxeFSV6+Rh65/q6gvUhr1AAAYZYg Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi Ilya, I can provide the reason. CloudStack supports version to version upgrade all the way back to 2.1 days= . The typical upgrade means developer adds a statement in the new schema a= nd adds one in the upgrade. The problem with this approach is that the dev= eloper often just writes the new schema and doesn't change the upgrade scri= pts. And even if they did, it's not tested. There's been discussions back= in the really early days that this should be changed such that we only use= one path, create a schema, apply upgrades. That's why this has been chang= ed. --Alex > -----Original Message----- > From: Musayev, Ilya [mailto:imusayev@webmd.net] > Sent: Tuesday, February 26, 2013 12:41 PM > To: cloudstack-dev@incubator.apache.org > Subject: [ACS][BUG] Master build breaks due to sql updates >=20 > Hi All, >=20 > Master build breaks, as com.cloud.upgrade.DatabaseUpgradeChecker > attempts to update/patch a new database with older versions. I'm a bit > puzzled as to why a fresh installed DB has to be updated. In either way, = it > looks like DatabaseUpgradeChecker creates a dir "db" within developer/ > target/db with many update sql files going from versions of 2.x to 4.1 >=20 > Is this an expected behavior to create a fresh database and then layer on= the > sql patches on top? Or did the mechanism that checks if DB update is > necessary - stopped functioning? >=20 > To reproduce this issue, initiate a fresh build as of 02/26/13, run throu= gh > install and execute db deployment. >=20 > mvn -P developer -pl developer -Ddeploydb >=20 > Thanks > ilya