I committed this patch with svn 169737.

Suresh Thalamati wrote:

Attached are some functional tests to test the transaction log checksum feature (Derby-96).
Log corruption is simulated using a proxy storage factory that allows corruption of
the log write request before being writing to the disk. CorruptDiskStorage factory by default forwards
all the request to the underlying disk storage factory except when corruption flags are enabled.


Recovery tests need to boot the same database many times and have to use the
different Subprotocol to enable the corruption instead of the default protocol. This seems to be
possible only by adding a new tests suite in the current test frame work. Added a new suite
called "storerecovery" , may be all future recovery tests can be added to this suite.



Thanks -suresht

svn status
A java\testing\org\apache\derbyTesting\functionTests\tests\store\LogChecksumRecovery1_app.properties


A java\testing\org\apache\derbyTesting\functionTests\tests\store\LogChecksumRecovery1_derby.properties

M java\testing\org\apache\derbyTesting\functionTests\tests\store\copyfiles.ant

A java\testing\org\apache\derbyTesting\functionTests\tests\store\LogChecksumRecovery1.java

A java\testing\org\apache\derbyTesting\functionTests\tests\store\LogChecksumRecovery_derby.properties

A java\testing\org\apache\derbyTesting\functionTests\tests\store\LogChecksumSetup.java

A java\testing\org\apache\derbyTesting\functionTests\tests\store\LogChecksumRecovery_app.properties

A java\testing\org\apache\derbyTesting\functionTests\tests\store\LogChecksumSetup_app.properties

A java\testing\org\apache\derbyTesting\functionTests\tests\store\LogChecksumSetup_derby.properties

A java\testing\org\apache\derbyTesting\functionTests\tests\store\LogChecksumRecovery.java

A java\testing\org\apache\derbyTesting\functionTests\master\LogChecksumRecovery.out

A java\testing\org\apache\derbyTesting\functionTests\master\LogChecksumSetup.out

A java\testing\org\apache\derbyTesting\functionTests\master\LogChecksumRecovery1.out

A java\testing\org\apache\derbyTesting\functionTests\suites\storerecovery.properties

M java\testing\org\apache\derbyTesting\functionTests\suites\storeall.properties

A java\testing\org\apache\derbyTesting\functionTests\suites\storerecovery.runall

A java\testing\org\apache\derbyTesting\functionTests\util\corruptio
A java\testing\org\apache\derbyTesting\functionTests\util\corruptio\CorruptRandomAccessFile.java


A java\testing\org\apache\derbyTesting\functionTests\util\corruptio\CorruptibleIo.java

A java\testing\org\apache\derbyTesting\functionTests\util\corruptio\CorruptBaseStorageFactory.java

A java\testing\org\apache\derbyTesting\functionTests\util\corruptio\CorruptDiskStorageFactory.java

A java\testing\org\apache\derbyTesting\functionTests\util\corruptio\CorruptFile.java




> rest of lines deleted ....



Reply via email to