| java.lang.Object org.apache.derbyTesting.unitTests.harness.T_Generic org.apache.derbyTesting.unitTests.store.T_RecoverBadLog
T_RecoverBadLog | public class T_RecoverBadLog extends T_Generic (Code) | | A implementation unit test for recovering log that has been damanged but salvagable.
To run, create a derby.properties file in a new directory with the
contents
derby.module.test.recoverBadLog=org.apache.derbyTesting.unitTests.store.T_RecoverBadLog
Execute in order
To Test Bad Log due to partial write that are identified by checking the
length in the beginning and end of the log record.
java -DTestBadLogSetup=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog1=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog2=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog3=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog4=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog5=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog6=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog7=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog1=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
To Test Bad Log due to an incomplete out of order write that is identified
by the checksum logic (simulated by explicitly corrupting a middle of a
log record at the end of log file after it is written).
java -DTestBadLogSetup=true -DTestBadChecksumLog=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog1=true -DTestBadChecksumLog=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog2=true -DTestBadChecksumLog=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog3=true -DTestBadChecksumLog=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog4=true -DTestBadChecksumLog=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog5=true -DTestBadChecksumLog=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog6=true -DTestBadChecksumLog=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog7=true -DTestBadChecksumLog=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
java -DTestBadLog1=true -DTestBadChecksumLog=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
|
T_RecoverBadLog | public T_RecoverBadLog()(Code) | | |
getModuleToTestProtocolName | public String getModuleToTestProtocolName()(Code) | | |
runTests | public void runTests() throws T_Fail(Code) | | See T_Recovery for the general testing frame work
exception: T_Fail - Unexpected behaviour from the API |
|
|