@InterfaceAudience.Private public class AcidGuaranteesTestTool extends org.apache.hadoop.hbase.util.AbstractHBaseTool
Modifier and Type | Class and Description |
---|---|
static class |
AcidGuaranteesTestTool.AtomicGetReader
Thread that does single-row reads in a table, looking for partially completed rows.
|
static class |
AcidGuaranteesTestTool.AtomicityWriter
Thread that does random full-row writes into a table.
|
static class |
AcidGuaranteesTestTool.AtomicScanReader
Thread that does full scans of the table looking for any partially completed rows.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
crazyFlush |
static byte[][] |
FAMILIES |
static byte[] |
FAMILY_A |
static byte[] |
FAMILY_B |
static byte[] |
FAMILY_C |
private static org.slf4j.Logger |
LOG |
private long |
millisToRun |
static int |
NUM_COLS_TO_CHECK |
private int |
numGetters |
private int |
numScanners |
private int |
numUniqueRows |
private int |
numWriters |
static byte[] |
QUALIFIER_NAME |
private ExecutorService |
sharedPool |
static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
private boolean |
useMob |
Constructor and Description |
---|
AcidGuaranteesTestTool() |
Modifier and Type | Method and Description |
---|---|
protected void |
addOptions() |
private void |
createTableIfMissing(org.apache.hadoop.hbase.client.Admin admin,
boolean useMob) |
private ExecutorService |
createThreadPool() |
protected int |
doWork() |
static void |
main(String[] args) |
protected void |
processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) |
private void |
runTestAtomicity(org.apache.hadoop.hbase.client.Admin admin) |
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
private static final org.slf4j.Logger LOG
public static final org.apache.hadoop.hbase.TableName TABLE_NAME
public static final byte[] FAMILY_A
public static final byte[] FAMILY_B
public static final byte[] FAMILY_C
public static final byte[] QUALIFIER_NAME
public static final byte[][] FAMILIES
public static int NUM_COLS_TO_CHECK
private ExecutorService sharedPool
private long millisToRun
private int numWriters
private int numGetters
private int numScanners
private int numUniqueRows
private boolean crazyFlush
private boolean useMob
public AcidGuaranteesTestTool()
private ExecutorService createThreadPool()
protected void addOptions()
addOptions
in class org.apache.hadoop.hbase.util.AbstractHBaseTool
protected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
processOptions
in class org.apache.hadoop.hbase.util.AbstractHBaseTool
protected int doWork() throws Exception
doWork
in class org.apache.hadoop.hbase.util.AbstractHBaseTool
Exception
private void createTableIfMissing(org.apache.hadoop.hbase.client.Admin admin, boolean useMob) throws IOException
IOException
private void runTestAtomicity(org.apache.hadoop.hbase.client.Admin admin) throws Exception
Exception
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.