| java.lang.Object org.apache.derbyTesting.functionTests.tests.upgradeTests.UpgradeTester
UpgradeTester | public class UpgradeTester (Code) | | Tests upgrades including soft upgrade. Test consists of following phases:
- Create database with the old release.
- Boot the database with the new release in soft upgrade mode.
Try to execute functionality that is not allowed in soft upgrade.
- Boot the database with the old release to ensure the
database can be booted by the old release after soft upgrade.
- Boot the database with the new release in hard upgrade mode,
specifying the upgrade=true attribute.
- Boot the database with the old release to ensure the
database can not be booted by the old release after hard upgrade.
That's the general idea for GA releases. Alpha/beta releases do not
support upgrade unless the derby.database.allowPreReleaseUpgrade
property is set to true, in which case this program modifies the expected
behaviour.
This tests the following specifically.
10.1 Upgrade issues
- Routines with explicit Java signatures.
Metadata tests
10.2 Upgrade tests
- caseReusableRecordIdSequenceNumber
- Trigger action re-writing and implementation changes (DERBY-438)
- Grant/Revoke tests
|
Constructor Summary | |
public | UpgradeTester(int oldMajorVersion, int oldMinorVersion, int newMajorVersion, int newMinorVersion, boolean allowPreReleaseUpgrade) |
PH_CREATE | final static int PH_CREATE(Code) | | Create a database with old version
|
PH_HARD_UPGRADE | final static int PH_HARD_UPGRADE(Code) | | Perform hard upgrade with new version
|
PH_POST_HARD_UPGRADE | final static int PH_POST_HARD_UPGRADE(Code) | | Boot the database with old release after hard upgrade
|
PH_POST_SOFT_UPGRADE | final static int PH_POST_SOFT_UPGRADE(Code) | | Boot the database with old release after soft upgrade
|
PH_SOFT_UPGRADE | final static int PH_SOFT_UPGRADE(Code) | | Perform soft upgrade with new version
|
UpgradeTester | public UpgradeTester(int oldMajorVersion, int oldMinorVersion, int newMajorVersion, int newMinorVersion, boolean allowPreReleaseUpgrade)(Code) | | Constructor
Parameters: oldMajorVersion - Major version number of old release Parameters: oldMinorVersion - Minor version number of old release Parameters: newMajorVersion - Major version number of new release Parameters: newMinorVersion - Minor version number of new release Parameters: allowPreReleaseUpgrade - If true, set the system property 'derby.database.allowPreReleaseUpgrade' to indicate alpha/beta releases to support upgrade. |
caseReusableRecordIdSequenceNumber | static boolean caseReusableRecordIdSequenceNumber(Connection conn, int phase, int dbMajor, int dbMinor) throws SQLException(Code) | | In 10.2: We will write a ReusableRecordIdSequenceNumber in the
header of a FileContaienr.
Verify here that a 10.1 Database does not malfunction from this.
10.1 Databases should ignore the field.
|
dumpSQLExceptions | public static void dumpSQLExceptions(SQLException sqle)(Code) | | Display the sql exception
Parameters: sqle - SQLException |
runUpgradeTests | public void runUpgradeTests() throws Exception(Code) | | Runs the upgrade tests by calling runPhase for each phase.
throws: Exception - |
|
|