public class TestMinimalLockingWriteAheadLog
extends java.lang.Object
| Constructor and Description |
|---|
TestMinimalLockingWriteAheadLog() |
| Modifier and Type | Method and Description |
|---|---|
void |
testCannotModifyLogAfterAllAreBlackListed() |
void |
testDecreaseNumberOfPartitions() |
void |
testRecoverAfterIOException() |
void |
testRecoverFileThatHasTrailingNULBytesAndTruncation() |
void |
testRecoverFileThatHasTrailingNULBytesNoTruncation() |
void |
testRepoDoesntContinuallyGrowOnOutOfMemoryError() |
void |
testShutdownWhileBlacklisted() |
void |
testStriping() |
void |
testTruncatedPartitionHeader() |
void |
testUpdatePerformance() |
void |
testWrite() |
void |
tryToCauseThreadingIssue()
This test is intended to continually update the Write-ahead log using many threads, then
stop and restore the repository to check for any corruption.
|
public void testTruncatedPartitionHeader()
throws java.io.IOException
java.io.IOExceptionpublic void testUpdatePerformance()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void testRepoDoesntContinuallyGrowOnOutOfMemoryError()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void tryToCauseThreadingIssue()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - if unable to read from/write to the write-ahead logjava.lang.InterruptedException - if a thread is interruptedpublic void testWrite()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void testRecoverAfterIOException()
throws java.io.IOException
java.io.IOExceptionpublic void testRecoverFileThatHasTrailingNULBytesAndTruncation()
throws java.io.IOException
java.io.IOExceptionpublic void testRecoverFileThatHasTrailingNULBytesNoTruncation()
throws java.io.IOException
java.io.IOExceptionpublic void testCannotModifyLogAfterAllAreBlackListed()
throws java.io.IOException
java.io.IOExceptionpublic void testStriping()
throws java.io.IOException
java.io.IOExceptionpublic void testShutdownWhileBlacklisted()
throws java.io.IOException
java.io.IOExceptionpublic void testDecreaseNumberOfPartitions()
throws java.io.IOException
java.io.IOException