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
Modifier and TypeClassDescriptionprivate static final class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static final AtomicBoolean
private static final org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.master.procedure.ServerCrashProcedure
getSCPForServer
(org.apache.hadoop.hbase.ServerName serverName) void
setUp()
static void
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) static void
void
-
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
-