Class TestRollbackSCP
java.lang.Object
org.apache.hadoop.hbase.master.assignment.TestRollbackSCP
SCP does not support rollback actually, here we just want to simulate that when there is a code
bug, SCP and its sub procedures will not hang there forever, and it will not mess up the
procedure store.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final byte[]private static final AtomicBooleanprivate static final org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.master.procedure.ServerCrashProceduregetSCPForServer(org.apache.hadoop.hbase.ServerName serverName) voidsetUp()static voidprivate org.hamcrest.Matcher<org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>>subProcOf(org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> proc) static voidvoid
-
Field Details
-
CLASS_RULE
-
UTIL
-
TABLE_NAME
-
FAMILY
-
INJECTED
-
-
Constructor Details
-
TestRollbackSCP
public TestRollbackSCP()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
IOException
-
setUp
- Throws:
IOException
-
getSCPForServer
private org.apache.hadoop.hbase.master.procedure.ServerCrashProcedure getSCPForServer(org.apache.hadoop.hbase.ServerName serverName) throws IOException - Throws:
IOException
-
subProcOf
private org.hamcrest.Matcher<org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>> subProcOf(org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> proc) -
testFailAndRollback
- Throws:
Exception
-