public class TestProcedureNonce extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestProcedureNonce.TestProcEnv |
static class |
TestProcedureNonce.TestSingleStepProcedure |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.fs.FileSystem |
fs |
private HBaseCommonTestingUtility |
htu |
private static org.slf4j.Logger |
LOG |
private org.apache.hadoop.fs.Path |
logDir |
private static int |
PROCEDURE_EXECUTOR_SLOTS |
private static TestProcedureNonce.TestProcEnv |
procEnv |
private static org.apache.hadoop.hbase.procedure2.ProcedureExecutor<TestProcedureNonce.TestProcEnv> |
procExecutor |
private static org.apache.hadoop.hbase.procedure2.store.ProcedureStore |
procStore |
Constructor and Description |
---|
TestProcedureNonce() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
void |
tearDown() |
void |
testCompletedProcWithSameNonce() |
void |
testConcurrentNonceRegistration() |
private void |
testConcurrentNonceRegistration(boolean submitProcedure,
long nonceGroup,
long nonce) |
void |
testConcurrentNonceRegistrationWithRollback() |
void |
testRunningProcWithSameNonce() |
void |
testSetFailureResultForNonce() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final int PROCEDURE_EXECUTOR_SLOTS
private static TestProcedureNonce.TestProcEnv procEnv
private static org.apache.hadoop.hbase.procedure2.ProcedureExecutor<TestProcedureNonce.TestProcEnv> procExecutor
private static org.apache.hadoop.hbase.procedure2.store.ProcedureStore procStore
private HBaseCommonTestingUtility htu
private org.apache.hadoop.fs.FileSystem fs
private org.apache.hadoop.fs.Path logDir
public TestProcedureNonce()
public void setUp() throws IOException
IOException
public void tearDown() throws IOException
IOException
public void testCompletedProcWithSameNonce() throws Exception
Exception
public void testRunningProcWithSameNonce() throws Exception
Exception
public void testSetFailureResultForNonce() throws IOException
IOException
public void testConcurrentNonceRegistration() throws IOException
IOException
public void testConcurrentNonceRegistrationWithRollback() throws IOException
IOException
private void testConcurrentNonceRegistration(boolean submitProcedure, long nonceGroup, long nonce) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.