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.IOException
public void testUpdatePerformance() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public void testRepoDoesntContinuallyGrowOnOutOfMemoryError() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public 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.IOException
java.lang.InterruptedException
public void testRecoverAfterIOException() throws java.io.IOException
java.io.IOException
public void testRecoverFileThatHasTrailingNULBytesAndTruncation() throws java.io.IOException
java.io.IOException
public void testRecoverFileThatHasTrailingNULBytesNoTruncation() throws java.io.IOException
java.io.IOException
public void testCannotModifyLogAfterAllAreBlackListed() throws java.io.IOException
java.io.IOException
public void testStriping() throws java.io.IOException
java.io.IOException
public void testShutdownWhileBlacklisted() throws java.io.IOException
java.io.IOException
public void testDecreaseNumberOfPartitions() throws java.io.IOException
java.io.IOException