Class TestMultiLogThreshold
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestMultiLogThreshold
Tests logging of large batch commands via Multi. Tests are fast, but uses a mini-cluster (to test
via "Multi" commands) so classified as MediumTests
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static enum
private final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.logging.log4j.core.Appender
static final HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
private static final org.apache.hadoop.hbase.TableName
static boolean
private org.apache.hadoop.hbase.regionserver.HRegionServer
private org.apache.hadoop.hbase.regionserver.RSRpcServices
private static final byte[]
private int
private HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertLogBatchWarnings
(boolean expected) 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 Actionsvoid
void
tearDown()
void
-
Field Details
-
CLASS_RULE
-
NAME
-
TEST_FAM
-
util
-
conf
-
threshold
-
rs
-
services
-
appender
-
rejectLargeBatchOp
-
logs
-
-
Constructor Details
-
TestMultiLogThreshold
public TestMultiLogThreshold()
-
-
Method Details
-
params
-
setupTest
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
sendMultiRequest
private void sendMultiRequest(int rows, TestMultiLogThreshold.ActionType actionType) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException, IOException 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- Throws:
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOException
-
assertLogBatchWarnings
-
testMultiLogThresholdRegionActions
public void testMultiLogThresholdRegionActions() throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException, IOException- Throws:
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOException
-