Class TestMultiLogThreshold
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestMultiLogThreshold
@Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestMultiLogThreshold
extends Object
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
Nested ClassesModifier and TypeClassDescriptionprivate static enumprivate final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.logging.log4j.core.Appenderprivate org.apache.hadoop.conf.Configurationprivate static final org.apache.hadoop.hbase.TableNameprivate final booleanprivate org.apache.hadoop.hbase.regionserver.HRegionServerprivate org.apache.hadoop.hbase.regionserver.RSRpcServicesprivate static final byte[]private intprivate HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertLogBatchWarnings(boolean expected) static Stream<org.junit.jupiter.params.provider.Arguments>private voidsendMultiRequest(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 ActionsvoidvoidtearDown()void
-
Field Details
-
NAME
-
TEST_FAM
-
util
-
conf
-
threshold
-
rs
-
services
-
appender
-
rejectLargeBatchOp
-
logs
-
-
Constructor Details
-
TestMultiLogThreshold
-
-
Method Details
-
parameters
-
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.ServiceExceptionIOException
-
assertLogBatchWarnings
-
testMultiLogThresholdRegionActions
@TestTemplate public void testMultiLogThresholdRegionActions() throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException, IOException- Throws:
org.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionIOException
-