public class TestChecksum extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
| Constructor and Description |
|---|
TestChecksum() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testAllChecksumTypes()
Test all checksum types by writing and reading back blocks.
|
void |
testChecksumChunks()
Test different values of bytesPerChecksum
|
void |
testChecksumCorruption()
Introduce checksum failures and check that we can still read
the data
|
protected void |
testChecksumCorruptionInternals(boolean useTags) |
protected void |
testChecksumInternals(boolean useTags) |
void |
testNewBlocksHaveDefaultChecksum() |
public static final HBaseClassTestRule CLASS_RULE
public TestChecksum()
public void testNewBlocksHaveDefaultChecksum() throws IOException
IOExceptionpublic void testAllChecksumTypes() throws IOException
IOExceptionpublic void testChecksumCorruption() throws IOException
IOExceptionprotected void testChecksumCorruptionInternals(boolean useTags) throws IOException
IOExceptionpublic void testChecksumChunks() throws IOException
IOExceptionprotected void testChecksumInternals(boolean useTags) throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.