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
FieldsModifier and TypeFieldDescriptionprotected booleanSet when we want to fail AFTER state has been stored into the WAL.protected booleanKill the PE BEFORE we store state to the WAL.protected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected booleanshouldKillAfterStoreUpdate(boolean isSuspended) protected booleanprotected booleanshouldKillBeforeStoreUpdate(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
-