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
Exception
public static void afterClass() throws Exception
Exception
private static byte[][] makeKeys()
public void testActiveThreadsCount() throws Exception
Exception
public void testBatchWithGet() throws Exception
Exception
public void testBadFam() throws Exception
Exception
public void testFlushCommitsNoAbort() throws Exception
Exception
public void testFlushCommitsWithAbort() throws Exception
Exception
private void doTestFlushCommits(boolean doAbort) throws Exception
doAbort
- true if abort one regionserver in the testingException
public void testBatchWithPut() throws Exception
Exception
public void testBatchWithDelete() throws Exception
Exception
public void testHTableDeleteWithList() throws Exception
Exception
public void testBatchWithManyColsInOneRowGetAndPut() throws Exception
Exception
public void testBatchWithIncrementAndAppend() throws Exception
Exception
public void testNonceCollision() throws Exception
Exception
public void testBatchWithMixedActions() throws Exception
Exception
private 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
IOException
private void validateEmpty(Object r1)
private void validateSizeAndEmpty(Object[] results, int expectedSize)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.