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
FieldsModifier and TypeFieldDescriptionprivate static Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel>static final HBaseClassTestRuleprivate static org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroupprivate static org.apache.hadoop.hdfs.DistributedFileSystemprivate static org.apache.hadoop.hbase.io.asyncfs.monitor.StreamSlowMonitorFields inherited from class org.apache.hadoop.hbase.io.asyncfs.AsyncFSTestBase
CLUSTER, CLUSTER_TEST_DIR, UTIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.io.asyncfs.FanOutOneBlockAsyncDFSOutputstatic voidsetUp()static voidtearDown()voidvoidvoidvoidprivate voidverifyGetUniqKey(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:
IllegalArgumentExceptionIOException
-
testLeaseRenew
- Throws:
IOException
-
getUniqKeyMethod
-
testEnsureMethodsCalledWhenLeaseRenewal
- Throws:
Exception
-
verifyGetUniqKey
- Throws:
Exception
-
testEnsureMethodsCalledWhenClosing
- Throws:
Exception
-
testEnsureMethodsCalledWhenAborting
- Throws:
Exception
-