Class TestTimeoutExceptionInjector
java.lang.Object
org.apache.hadoop.hbase.errorhandling.TestTimeoutExceptionInjector
Test the
TimeoutExceptionInjector
to ensure we fulfill contracts-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Demonstrate TimeoutExceptionInjector semantics -- completion means no more exceptions passed to error listener.void
Demonstrate TimeoutExceptionInjector semantics -- triggering fires exception and completes the timer.void
Test that a manually triggered exception with data fires with the data in receiveError.void
Test that a manually triggered timer fires an exception.
-
Field Details
-
CLASS_RULE
-
LOG
-
-
Constructor Details
-
TestTimeoutExceptionInjector
public TestTimeoutExceptionInjector()
-
-
Method Details
-
testTimerTrigger
Test that a manually triggered timer fires an exception. -
testTimerPassesOnErrorInfo
Test that a manually triggered exception with data fires with the data in receiveError. -
testStartAfterComplete
Demonstrate TimeoutExceptionInjector semantics -- completion means no more exceptions passed to error listener.- Throws:
InterruptedException
-
testStartAfterTrigger
Demonstrate TimeoutExceptionInjector semantics -- triggering fires exception and completes the timer.- Throws:
InterruptedException
-