public class TestFanOutOneBlockAsyncDFSOutput extends AsyncFSTestBase
Modifier and Type | Field and Description |
---|---|
private static Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> |
CHANNEL_CLASS |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup |
EVENT_LOOP_GROUP |
private static org.apache.hadoop.hdfs.DistributedFileSystem |
FS |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static int |
READ_TIMEOUT_MS |
CLUSTER, CLUSTER_TEST_DIR, UTIL
Constructor and Description |
---|
TestFanOutOneBlockAsyncDFSOutput() |
Modifier and Type | Method and Description |
---|---|
static void |
setUp() |
static void |
tearDown() |
void |
test() |
void |
testConnectToDatanodeFailed() |
void |
testCreateParentFailed()
This is important for fencing when recover from RS crash.
|
void |
testHeartbeat() |
void |
testRecover() |
void |
testWriteLargeChunk() |
(package private) static void |
writeAndVerify(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path f,
org.apache.hadoop.hbase.io.asyncfs.AsyncFSOutput out) |
setupClusterTestDir, shutdownMiniDFSCluster, startMiniDFSCluster
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static org.apache.hadoop.hdfs.DistributedFileSystem FS
private static org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup EVENT_LOOP_GROUP
private static Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> CHANNEL_CLASS
private static int READ_TIMEOUT_MS
public org.junit.rules.TestName name
public TestFanOutOneBlockAsyncDFSOutput()
public static void tearDown() throws IOException, InterruptedException
IOException
InterruptedException
static void writeAndVerify(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path f, org.apache.hadoop.hbase.io.asyncfs.AsyncFSOutput out) throws IOException, InterruptedException, ExecutionException
public void test() throws IOException, InterruptedException, ExecutionException
public void testRecover() throws IOException, InterruptedException, ExecutionException
public void testHeartbeat() throws IOException, InterruptedException, ExecutionException
public void testCreateParentFailed() throws IOException
IOException
public void testConnectToDatanodeFailed() throws IOException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InterruptedException, NoSuchFieldException
public void testWriteLargeChunk() throws IOException, InterruptedException, ExecutionException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.