public class TestServerCrashProcedure extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private long |
serverCrashFailedCount |
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics |
serverCrashProcMetrics |
private long |
serverCrashSubmittedCount |
private HBaseTestingUtility |
util |
| Constructor and Description |
|---|
TestServerCrashProcedure() |
| Modifier and Type | Method and Description |
|---|---|
private void |
collectMasterMetrics() |
private long |
getSCPProcId(org.apache.hadoop.hbase.procedure2.ProcedureExecutor<?> procExec) |
void |
setup() |
private void |
setupConf(org.apache.hadoop.conf.Configuration conf) |
void |
tearDown() |
void |
testCrashTargetRs() |
private void |
testRecoveryAndDoubleExecution(boolean carryingMeta,
boolean doubleExecution)
Run server crash procedure steps twice to test idempotency and that we are persisting all
needed state.
|
void |
testRecoveryAndDoubleExecutionOnRsWithMeta() |
void |
testRecoveryAndDoubleExecutionOnRsWithoutMeta() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private HBaseTestingUtility util
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics serverCrashProcMetrics
private long serverCrashSubmittedCount
private long serverCrashFailedCount
public TestServerCrashProcedure()
private void setupConf(org.apache.hadoop.conf.Configuration conf)
public void testCrashTargetRs() throws Exception
Exceptionpublic void testRecoveryAndDoubleExecutionOnRsWithMeta() throws Exception
Exceptionpublic void testRecoveryAndDoubleExecutionOnRsWithoutMeta() throws Exception
Exceptionprivate long getSCPProcId(org.apache.hadoop.hbase.procedure2.ProcedureExecutor<?> procExec)
private void testRecoveryAndDoubleExecution(boolean carryingMeta, boolean doubleExecution) throws Exception
Exceptionprivate void collectMasterMetrics()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.