Class AcidGuaranteesTestTool

java.lang.Object
org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.AcidGuaranteesTestTool
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

@Private public class AcidGuaranteesTestTool extends org.apache.hadoop.hbase.util.AbstractHBaseTool
A test tool that uses multiple threads to read and write multifamily rows into a table, verifying that reads never see partially-complete writes
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Thread that does single-row reads in a table, looking for partially completed rows.
    static class 
    Thread that does random full-row writes into a table.
    static class 
    Thread that does full scans of the table looking for any partially completed rows.

    Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool

    org.apache.hadoop.hbase.util.AbstractHBaseTool.OptionsOrderComparator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
     
    static final byte[][]
     
    static final byte[]
     
    static final byte[]
     
    static final byte[]
     
    private static final org.slf4j.Logger
     
    private long
     
    static int
     
    private int
     
    private int
     
    private int
     
    private int
     
    static final byte[]
     
     
    static final org.apache.hadoop.hbase.TableName
     
    private boolean
     

    Fields inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool

    cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    private void
    createTableIfMissing(org.apache.hadoop.hbase.client.Admin admin, boolean useMob)
     
     
    protected int
     
    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)
     

    Methods inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool

    addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait