Package org.apache.hadoop.hbase.test
Class IntegrationTestBigLinkedListWithVisibility
java.lang.Object
org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.IntegrationTestBase
org.apache.hadoop.hbase.test.IntegrationTestBigLinkedList
org.apache.hadoop.hbase.test.IntegrationTestBigLinkedListWithVisibility
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.util.Tool
IT test used to verify the deletes with visibility labels. The test creates three tables
tablename_0, tablename_1 and tablename_2 and each table is associated with a unique pair of
labels. Another common table with the name 'commontable' is created and it has the data combined
from all these 3 tables such that there are 3 versions of every row but the visibility label in
every row corresponds to the table from which the row originated. Then deletes are issued to the
common table by selecting the visibility label associated with each of the smaller tables. After
the delete is issued with one set of visibility labels we try to scan the common table with each
of the visibility pairs defined for the 3 tables. So after the first delete is issued, a scan
with the first set of visibility labels would return zero result whereas the scan issued with the
other two sets of visibility labels should return all the rows corresponding to that set of
visibility labels. The above process of delete and scan is repeated until after the last set of
visibility labels are used for the deletes the common table should not return any row. To use
this ./hbase org.apache.hadoop.hbase.test.IntegrationTestBigLinkedListWithVisibility Loop 1 1
20000 /tmp 1 10000 or ./hbase org.apache.hadoop.hbase.IntegrationTestsDriver -r
.*IntegrationTestBigLinkedListWithVisibility.*
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
(package private) static class
(package private) static class
(package private) static class
(package private) static class
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.test.IntegrationTestBigLinkedList
IntegrationTestBigLinkedList.CINode, IntegrationTestBigLinkedList.Generator, IntegrationTestBigLinkedList.Loop, IntegrationTestBigLinkedList.Search, IntegrationTestBigLinkedList.Verify, IntegrationTestBigLinkedList.WalkerBase
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.util.AbstractHBaseTool.OptionsOrderComparator
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String
static final String
private static final String
static int
private static final String
private static final String
static final String
static String
static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
static String
private static final String
private static final String
private static org.apache.hadoop.hbase.security.User
private static String
private static String
Fields inherited from class org.apache.hadoop.hbase.test.IntegrationTestBigLinkedList
COLUMN_CLIENT, COLUMN_COUNT, COLUMN_PREV, DEFAULT_TABLE_NAME, FAMILY_NAME, NO_KEY, NUM_SLAVES_BASE, otherArgs, TABLE_NAME_KEY, toRun
Fields inherited from class org.apache.hadoop.hbase.IntegrationTestBase
CHAOS_MONKEY_PROPS, monkey, MONKEY_LONG_OPT, monkeyProps, monkeyToUse, NO_CLUSTER_CLEANUP_LONG_OPT, noClusterCleanUp, util
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
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
protected void
protected MonkeyFactory
(package private) static org.apache.hadoop.hbase.TableName
getTableName
(int i) static void
protected void
processOptions
(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) int
void
void
Methods inherited from class org.apache.hadoop.hbase.test.IntegrationTestBigLinkedList
cleanUpCluster, getColumnFamilies, getTablename, getTableName, setJobScannerConf
Methods inherited from class org.apache.hadoop.hbase.IntegrationTestBase
cleanUp, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getTestingUtil, loadMonkeyProperties, processBaseOptions, setUp, setUpMonkey, startMonkey
Methods inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
-
Field Details
-
CONFIDENTIAL
- See Also:
-
TOPSECRET
- See Also:
-
SECRET
- See Also:
-
PUBLIC
- See Also:
-
PRIVATE
- See Also:
-
EVERYONE
- See Also:
-
RESTRICTED
- See Also:
-
GROUP
- See Also:
-
PREVILIGED
- See Also:
-
OPEN
- See Also:
-
labels
-
COMMA
- See Also:
-
UNDER_SCORE
- See Also:
-
DEFAULT_TABLES_COUNT
-
tableName
-
COMMON_TABLE_NAME
- See Also:
-
LABELS_KEY
- See Also:
-
INDEX_KEY
- See Also:
-
USER
-
OR
- See Also:
-
USER_OPT
-
userName
-
-
Constructor Details
-
IntegrationTestBigLinkedListWithVisibility
-
-
Method Details
-
addOptions
- Overrides:
addOptions
in classIntegrationTestBase
-
processOptions
- Overrides:
processOptions
in classIntegrationTestBigLinkedList
-
setUpCluster
- Overrides:
setUpCluster
in classIntegrationTestBigLinkedList
- Throws:
Exception
-
getTableName
-
addLabels
- Throws:
Exception
-
testContinuousIngest
- Overrides:
testContinuousIngest
in classIntegrationTestBigLinkedList
- Throws:
IOException
Exception
-
main
- Throws:
Exception
-
getDefaultMonkeyFactory
- Overrides:
getDefaultMonkeyFactory
in classIntegrationTestBase
-
runTestFromCommandLine
- Overrides:
runTestFromCommandLine
in classIntegrationTestBigLinkedList
- Throws:
Exception
-