Class TestLeaseRenewal
java.lang.Object
org.apache.hadoop.hbase.io.asyncfs.AsyncFSTestBase
org.apache.hadoop.hbase.io.asyncfs.TestLeaseRenewal
Make sure lease renewal works. Since it is in a background thread, normal read/write test can not
verify it.
See HBASE-28955 for more details.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel>
static final HBaseClassTestRule
private static org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup
private static org.apache.hadoop.hdfs.DistributedFileSystem
private static org.apache.hadoop.hbase.io.asyncfs.monitor.StreamSlowMonitor
Fields inherited from class org.apache.hadoop.hbase.io.asyncfs.AsyncFSTestBase
CLUSTER, CLUSTER_TEST_DIR, UTIL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.io.asyncfs.FanOutOneBlockAsyncDFSOutput
static void
setUp()
static void
tearDown()
void
void
void
void
private void
verifyGetUniqKey
(org.apache.hadoop.hdfs.DummyDFSOutputStream dummy) Methods inherited from class org.apache.hadoop.hbase.io.asyncfs.AsyncFSTestBase
setupClusterTestDir, shutdownMiniDFSCluster, startMiniDFSCluster
-
Field Details
-
CLASS_RULE
-
FS
-
EVENT_LOOP_GROUP
-
CHANNEL_CLASS
-
MONITOR
-
-
Constructor Details
-
TestLeaseRenewal
public TestLeaseRenewal()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
create
private org.apache.hadoop.hbase.io.asyncfs.FanOutOneBlockAsyncDFSOutput create(String file) throws IllegalArgumentException, IOException - Throws:
IllegalArgumentException
IOException
-
testLeaseRenew
- Throws:
IOException
-
getUniqKeyMethod
-
testEnsureMethodsCalledWhenLeaseRenewal
- Throws:
Exception
-
verifyGetUniqKey
- Throws:
Exception
-
testEnsureMethodsCalledWhenClosing
- Throws:
Exception
-
testEnsureMethodsCalledWhenAborting
- Throws:
Exception
-