Class TestProcedureEvents
java.lang.Object
org.apache.hadoop.hbase.procedure2.TestProcedureEvents
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
static class
This Event+Procedure exhibits following behavior: On procedure execute() If had enough timeouts, abort the procedure. -
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.fs.FileSystem
private HBaseCommonTestingUtil
private static final org.slf4j.Logger
private org.apache.hadoop.fs.Path
private TestProcedureEvents.TestProcEnv
private org.apache.hadoop.hbase.procedure2.ProcedureExecutor<TestProcedureEvents.TestProcEnv>
private org.apache.hadoop.hbase.procedure2.store.ProcedureStore
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setUp()
void
tearDown()
void
Tests being able to suspend a Procedure for N timeouts and then failing.s Resets the timeout after each elapses.void
private void
testTimeoutEventProcedureDoubleExecution
(boolean killIfSuspended) void
-
Field Details
-
CLASS_RULE
-
LOG
-
procEnv
-
procStore
-
procExecutor
private org.apache.hadoop.hbase.procedure2.ProcedureExecutor<TestProcedureEvents.TestProcEnv> procExecutor -
htu
-
fs
-
logDir
-
-
Constructor Details
-
TestProcedureEvents
public TestProcedureEvents()
-
-
Method Details
-
setUp
- Throws:
IOException
-
tearDown
- Throws:
IOException
-
testTimeoutEventProcedure
Tests being able to suspend a Procedure for N timeouts and then failing.s Resets the timeout after each elapses. SeeTestProcedureEvents.TestTimeoutEventProcedure
for example of how to do this sort of trickery with the ProcedureExecutor; i.e. suspend for a while, check for a condition and if not set, suspend again, etc., ultimately failing or succeeding eventually.- Throws:
Exception
-
testTimeoutEventProcedureDoubleExecution
- Throws:
Exception
-
testTimeoutEventProcedureDoubleExecutionKillIfSuspended
- Throws:
Exception
-
testTimeoutEventProcedureDoubleExecution
- Throws:
Exception
-