public class TestMultiParallel extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestMultiParallel.MyMasterObserver |
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
BYTES_FAMILY |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.client.Connection |
CONNECTION |
private static String |
FAMILY |
private static byte[][] |
KEYS |
private static org.slf4j.Logger |
LOG |
private static byte[] |
ONE_ROW |
private static byte[] |
QUALIFIER |
private static int |
slaves |
private static org.apache.hadoop.hbase.TableName |
TEST_TABLE |
private static HBaseTestingUtility |
UTIL |
private static byte[] |
VALUE |
| Constructor and Description |
|---|
TestMultiParallel() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
void |
before() |
static void |
beforeClass() |
private List<org.apache.hadoop.hbase.client.Put> |
constructPutRequests() |
private void |
doTestFlushCommits(boolean doAbort)
Set table auto flush to false and test flushing commits
|
private static byte[][] |
makeKeys() |
void |
testActiveThreadsCount()
This is for testing the active number of threads that were used while
doing a batch operation.
|
void |
testBadFam() |
void |
testBatchWithDelete() |
void |
testBatchWithGet() |
void |
testBatchWithIncrementAndAppend() |
void |
testBatchWithManyColsInOneRowGetAndPut() |
void |
testBatchWithMixedActions() |
void |
testBatchWithPut() |
void |
testFlushCommitsNoAbort() |
void |
testFlushCommitsWithAbort()
Only run one Multi test with a forced RegionServer abort.
|
void |
testHTableDeleteWithList() |
void |
testNonceCollision() |
private void |
validateEmpty(Object r1) |
private void |
validateLoadedData(org.apache.hadoop.hbase.client.Table table) |
private void |
validateResult(Object r) |
private void |
validateResult(Object r1,
byte[] qual,
byte[] val) |
private void |
validateSizeAndEmpty(Object[] results,
int expectedSize) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static final byte[] VALUE
private static final byte[] QUALIFIER
private static final String FAMILY
private static final org.apache.hadoop.hbase.TableName TEST_TABLE
private static final byte[] BYTES_FAMILY
private static final byte[] ONE_ROW
private static final byte[][] KEYS
private static final int slaves
private static org.apache.hadoop.hbase.client.Connection CONNECTION
public TestMultiParallel()
public static void beforeClass() throws Exception
Exceptionpublic static void afterClass() throws Exception
Exceptionprivate static byte[][] makeKeys()
public void testActiveThreadsCount() throws Exception
Exceptionpublic void testBatchWithGet() throws Exception
Exceptionpublic void testBadFam() throws Exception
Exceptionpublic void testFlushCommitsNoAbort() throws Exception
Exceptionpublic void testFlushCommitsWithAbort() throws Exception
Exceptionprivate void doTestFlushCommits(boolean doAbort) throws Exception
doAbort - true if abort one regionserver in the testingExceptionpublic void testBatchWithPut() throws Exception
Exceptionpublic void testBatchWithDelete() throws Exception
Exceptionpublic void testHTableDeleteWithList() throws Exception
Exceptionpublic void testBatchWithManyColsInOneRowGetAndPut() throws Exception
Exceptionpublic void testBatchWithIncrementAndAppend() throws Exception
Exceptionpublic void testNonceCollision() throws Exception
Exceptionpublic void testBatchWithMixedActions() throws Exception
Exceptionprivate void validateResult(Object r)
private void validateResult(Object r1, byte[] qual, byte[] val)
private List<org.apache.hadoop.hbase.client.Put> constructPutRequests()
private void validateLoadedData(org.apache.hadoop.hbase.client.Table table) throws IOException
IOExceptionprivate void validateEmpty(Object r1)
private void validateSizeAndEmpty(Object[] results, int expectedSize)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.