public class TestMultiLogThreshold extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestMultiLogThreshold.ActionType |
private class |
TestMultiLogThreshold.LevelAndMessage |
Modifier and Type | Field and Description |
---|---|
private org.apache.logging.log4j.core.Appender |
appender |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private BlockingDeque<TestMultiLogThreshold.LevelAndMessage> |
logs |
private static org.apache.hadoop.hbase.TableName |
NAME |
static boolean |
rejectLargeBatchOp |
private org.apache.hadoop.hbase.regionserver.HRegionServer |
rs |
private org.apache.hadoop.hbase.regionserver.RSRpcServices |
services |
private static byte[] |
TEST_FAM |
private int |
threshold |
private HBaseTestingUtility |
util |
Constructor and Description |
---|
TestMultiLogThreshold() |
Modifier and Type | Method and Description |
---|---|
private void |
assertLogBatchWarnings(boolean expected) |
static List<Object[]> |
params() |
private void |
sendMultiRequest(int rows,
TestMultiLogThreshold.ActionType actionType)
Sends a multi request with a certain amount of rows, will populate Multi command with either
"rows" number of RegionActions with one Action each or one RegionAction with "rows" number of
Actions
|
void |
setupTest() |
void |
tearDown() |
void |
testMultiLogThresholdRegionActions() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.apache.hadoop.hbase.TableName NAME
private static final byte[] TEST_FAM
private HBaseTestingUtility util
private org.apache.hadoop.conf.Configuration conf
private int threshold
private org.apache.hadoop.hbase.regionserver.HRegionServer rs
private org.apache.hadoop.hbase.regionserver.RSRpcServices services
private org.apache.logging.log4j.core.Appender appender
public static boolean rejectLargeBatchOp
private BlockingDeque<TestMultiLogThreshold.LevelAndMessage> logs
public TestMultiLogThreshold()
private void sendMultiRequest(int rows, TestMultiLogThreshold.ActionType actionType) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException, IOException
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOException
private void assertLogBatchWarnings(boolean expected)
public void testMultiLogThresholdRegionActions() throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException, IOException
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.