use of org.apache.hadoop.hbase.HBaseCommonTestingUtil in project hbase by apache.
the class TestStressWALProcedureStore method setUp.
@Before
public void setUp() throws IOException {
htu = new HBaseCommonTestingUtil();
setupConfiguration(htu.getConfiguration());
testDir = htu.getDataTestDir();
fs = testDir.getFileSystem(htu.getConfiguration());
assertTrue(testDir.depth() > 1);
logDir = new Path(testDir, "proc-logs");
procStore = ProcedureTestingUtility.createWalStore(htu.getConfiguration(), logDir);
procStore.start(PROCEDURE_STORE_SLOTS);
procStore.recoverLease();
LoadCounter loader = new LoadCounter();
procStore.load(loader);
assertEquals(0, loader.getMaxProcId());
assertEquals(0, loader.getLoadedCount());
assertEquals(0, loader.getCorruptedCount());
}
use of org.apache.hadoop.hbase.HBaseCommonTestingUtil in project hbase by apache.
the class TestProcedureInMemoryChore method setUp.
@Before
public void setUp() throws IOException {
htu = new HBaseCommonTestingUtil();
procEnv = new TestProcEnv();
procStore = new NoopProcedureStore();
procExecutor = new ProcedureExecutor<>(htu.getConfiguration(), procEnv, procStore);
procExecutor.testing = new ProcedureExecutor.Testing();
procStore.start(PROCEDURE_EXECUTOR_SLOTS);
ProcedureTestingUtility.initAndStartWorkers(procExecutor, PROCEDURE_EXECUTOR_SLOTS, true);
}
use of org.apache.hadoop.hbase.HBaseCommonTestingUtil in project hbase by apache.
the class TestProcedureNonce method setUp.
@Before
public void setUp() throws IOException {
htu = new HBaseCommonTestingUtil();
Path testDir = htu.getDataTestDir();
fs = testDir.getFileSystem(htu.getConfiguration());
assertTrue(testDir.depth() > 1);
logDir = new Path(testDir, "proc-logs");
procEnv = new TestProcEnv();
procStore = ProcedureTestingUtility.createStore(htu.getConfiguration(), logDir);
procExecutor = new ProcedureExecutor<>(htu.getConfiguration(), procEnv, procStore);
procExecutor.testing = new ProcedureExecutor.Testing();
procStore.start(PROCEDURE_EXECUTOR_SLOTS);
ProcedureTestingUtility.initAndStartWorkers(procExecutor, PROCEDURE_EXECUTOR_SLOTS, true);
}
use of org.apache.hadoop.hbase.HBaseCommonTestingUtil in project hbase by apache.
the class TestProcedureSuspended method setUp.
@Before
public void setUp() throws IOException {
htu = new HBaseCommonTestingUtil();
procStore = new NoopProcedureStore();
procExecutor = new ProcedureExecutor<>(htu.getConfiguration(), new TestProcEnv(), procStore);
procStore.start(PROCEDURE_EXECUTOR_SLOTS);
ProcedureTestingUtility.initAndStartWorkers(procExecutor, PROCEDURE_EXECUTOR_SLOTS, true);
}
use of org.apache.hadoop.hbase.HBaseCommonTestingUtil in project hbase by apache.
the class TestCommonFSUtils method setUp.
@Before
public void setUp() throws IOException {
htu = new HBaseCommonTestingUtil();
conf = htu.getConfiguration();
}
Aggregations