incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Huang <>
Subject RE: [ACS][BUG] Master build breaks due to sql updates
Date Tue, 26 Feb 2013 21:32:50 GMT
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 and adds one in the upgrade.  The
problem with this approach is that the developer often just writes the new schema and doesn't
change the upgrade scripts.  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 changed.


> -----Original Message-----
> From: Musayev, Ilya []
> Sent: Tuesday, February 26, 2013 12:41 PM
> To:
> Subject: [ACS][BUG] Master build breaks due to sql updates
> Hi All,
> Master build breaks, as
> 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
> 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?
> To reproduce this issue, initiate a fresh build as of 02/26/13, run through
> install and execute db deployment.
> mvn -P developer -pl developer -Ddeploydb
> Thanks
> ilya

View raw message