db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1576691 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/upgradeTests/Changes10_9.java
Date Wed, 12 Mar 2014 11:10:50 GMT
Author: kahatlen
Date: Wed Mar 12 11:10:50 2014
New Revision: 1576691

URL: http://svn.apache.org/r1576691
Log:
DERBY-6505: Clean up dead code in FileUtil

Add test that exercises FileUtil methods that are only used in soft
upgrade from 10.8 or earlier when backing up databases that contain
jar files.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/upgradeTests/Changes10_9.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/upgradeTests/Changes10_9.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/upgradeTests/Changes10_9.java?rev=1576691&r1=1576690&r2=1576691&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/upgradeTests/Changes10_9.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/upgradeTests/Changes10_9.java
Wed Mar 12 11:10:50 2014
@@ -504,6 +504,18 @@ public class Changes10_9 extends Upgrade
 
         case PH_SOFT_UPGRADE:
             // boot with new version and soft-upgrade
+
+            // DERBY-6505: Take a backup of the database. Backing up the
+            // jar storage takes a different path in soft upgrade, so make
+            // sure that path is exercised.
+            String backupdir =
+                SupportFilesSetup.getReadWriteFileName("d6505-backup");
+            PreparedStatement backupStmt =
+                prepareStatement("call syscs_util.syscs_backup_database(?)");
+            backupStmt.setString(1, backupdir);
+            backupStmt.execute();
+
+            // fallthrough... run the same tests as in post soft upgrade.
         case PH_POST_SOFT_UPGRADE:
             // soft-downgrade: boot with old version after soft-upgrade
 



Mime
View raw message