You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Suresh Thalamati <su...@gmail.com> on 2005/05/10 19:33:36 UTC

[PATCH] functional tests to test the transaction log checksum feature (Derby-96)

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



Re: [PATCH] functional tests to test the transaction log checksum feature (Derby-96)

Posted by Mike Matrigali <mi...@sbcglobal.net>.
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 ....