Class ProcedureExecutor.Testing
java.lang.Object
org.apache.hadoop.hbase.procedure2.ProcedureExecutor.Testing
- Enclosing class:
- ProcedureExecutor<TEnvironment>
Class with parameters describing how to fail/die when in testing-context.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Set when we want to fail AFTER state has been stored into the WAL.protected boolean
Kill the PE BEFORE we store state to the WAL.protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected boolean
shouldKillAfterStoreUpdate
(boolean isSuspended) protected boolean
protected boolean
shouldKillBeforeStoreUpdate
(boolean isSuspended, boolean hasParent) protected boolean
-
Field Details
-
killIfHasParent
-
killIfSuspended
-
killBeforeStoreUpdate
Kill the PE BEFORE we store state to the WAL. Good for figuring out if a Procedure is persisting all the state it needs to recover after a crash. -
toggleKillBeforeStoreUpdate
-
killAfterStoreUpdate
Set when we want to fail AFTER state has been stored into the WAL. Rarely used. HBASE-20978 is about a case where memory-state was being set after store to WAL where a crash could cause us to get stuck. This flag allows killing at what was a vulnerable time. -
toggleKillAfterStoreUpdate
-
killBeforeStoreUpdateInRollback
-
toggleKillBeforeStoreUpdateInRollback
-
-
Constructor Details
-
Testing
public Testing()
-
-
Method Details
-
shouldKillBeforeStoreUpdate
-
shouldKillBeforeStoreUpdate
-
shouldKillAfterStoreUpdate
-
shouldKillAfterStoreUpdate
-
shouldKillBeforeStoreUpdateInRollback
-