public class TestHFileBlockHeaderCorruption extends Object
onDiskSizeWithoutHeader
.Modifier and Type | Class and Description |
---|---|
static class |
TestHFileBlockHeaderCorruption.Corrupter
Enables writing and rewriting portions of the file backing an
HFileBlock . |
static class |
TestHFileBlockHeaderCorruption.CountingConsumer
Reads blocks off of an
TestHFileBlockHeaderCorruption.HFileBlockChannelPositionIterator , counting them as it does. |
static class |
TestHFileBlockHeaderCorruption.HFileBlockChannelPosition
Data class to enabled messing with the bytes behind an
HFileBlock . |
static class |
TestHFileBlockHeaderCorruption.HFileBlockChannelPositionIterator
A simplified wrapper over an
HFileBlock.BlockIterator that looks a lot like an
Iterator . |
static class |
TestHFileBlockHeaderCorruption.HFileTestRule |
private static class |
TestHFileBlockHeaderCorruption.IsThrowableMatching
A Matcher implementation that can make basic assertions over a provided
Throwable . |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private TestHFileBlockHeaderCorruption.HFileTestRule |
hFileTestRule |
private static org.slf4j.Logger |
LOG |
org.junit.rules.RuleChain |
ruleChain |
Constructor and Description |
---|
TestHFileBlockHeaderCorruption() |
Modifier and Type | Method and Description |
---|---|
private static void |
logHeader(org.apache.hadoop.hbase.nio.ByteBuff buf) |
private static void |
logHeader(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition hbcp) |
void |
testOnDiskSizeWithoutHeaderCorruptionFirstBlock() |
void |
testOnDiskSizeWithoutHeaderCorruptionSecondBlock() |
private static final org.slf4j.Logger LOG
public static final HBaseClassTestRule CLASS_RULE
private final TestHFileBlockHeaderCorruption.HFileTestRule hFileTestRule
public final org.junit.rules.RuleChain ruleChain
public TestHFileBlockHeaderCorruption() throws IOException
IOException
public void testOnDiskSizeWithoutHeaderCorruptionFirstBlock() throws Exception
Exception
public void testOnDiskSizeWithoutHeaderCorruptionSecondBlock() throws Exception
Exception
private static void logHeader(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition hbcp) throws IOException
IOException
private static void logHeader(org.apache.hadoop.hbase.nio.ByteBuff buf)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.