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 |
protected HBaseTestingUtility |
util |
| Constructor and Description |
|---|
TestServerCrashProcedure() |
| Modifier and Type | Method and Description |
|---|---|
private void |
collectMasterMetrics() |
protected org.apache.hadoop.hbase.client.Table |
createTable(org.apache.hadoop.hbase.TableName tableName) |
private long |
getSCPProcId(org.apache.hadoop.hbase.procedure2.ProcedureExecutor<?> procExec) |
void |
setup() |
private void |
setupConf(org.apache.hadoop.conf.Configuration conf) |
protected void |
startMiniCluster() |
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
protected 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)
protected void startMiniCluster() throws Exception
Exceptionpublic 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
Exceptionprotected org.apache.hadoop.hbase.client.Table createTable(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOExceptionprivate void collectMasterMetrics()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.