public class TestNamedQueueRecorder extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static HBaseTestingUtility |
HBASE_TESTING_UTILITY |
private static int |
i |
private static org.slf4j.Logger |
LOG |
private org.apache.hadoop.hbase.namequeues.NamedQueueRecorder |
namedQueueRecorder |
Constructor and Description |
---|
TestNamedQueueRecorder() |
Modifier and Type | Method and Description |
---|---|
private static org.apache.hadoop.conf.Configuration |
applySlowLogRecorderConf(int eventSize) |
private boolean |
confirmPayloadParams(int i,
int j,
List<org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload> slowLogPayloads)
confirm that for a ringbuffer of slow logs, payload on given index of buffer has expected
elements
|
private static org.apache.hbase.thirdparty.com.google.protobuf.Message |
getMessage() |
private static org.apache.hadoop.hbase.ipc.RpcCall |
getRpcCall(String userName) |
(package private) static org.apache.hadoop.hbase.namequeues.RpcLogDetails |
getRpcLogDetails(String userName,
String clientAddress,
String className) |
private org.apache.hadoop.hbase.namequeues.RpcLogDetails |
getRpcLogDetails(String userName,
String clientAddress,
String className,
boolean isSlowLog,
boolean isLargeLog) |
private List<org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload> |
getSlowLogPayloads(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.SlowLogResponseRequest request) |
private static Optional<org.apache.hadoop.hbase.security.User> |
getUser(String userName) |
void |
testConcurrentSlowLogEvents() |
void |
testOnlieSlowLogConsumption() |
void |
testOnlineSlowLogWithDefaultDisableConfig() |
void |
testOnlineSlowLogWithDisableConfig() |
void |
testOnlineSlowLogWithHighRecords() |
void |
testSlowLargeLogEvents() |
void |
testSlowLogFilters() |
void |
testSlowLogMixedFilters() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility HBASE_TESTING_UTILITY
private org.apache.hadoop.hbase.namequeues.NamedQueueRecorder namedQueueRecorder
private static int i
public TestNamedQueueRecorder()
private static org.apache.hadoop.conf.Configuration applySlowLogRecorderConf(int eventSize)
private boolean confirmPayloadParams(int i, int j, List<org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload> slowLogPayloads)
i
- index of ringbuffer logsj
- data value that was put on index islowLogPayloads
- list of payload retrieved from NamedQueueRecorder
public void testOnlieSlowLogConsumption() throws Exception
Exception
private List<org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload> getSlowLogPayloads(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.SlowLogResponseRequest request)
public void testOnlineSlowLogWithHighRecords() throws Exception
Exception
public void testOnlineSlowLogWithDefaultDisableConfig() throws Exception
Exception
public void testOnlineSlowLogWithDisableConfig() throws Exception
Exception
public void testSlowLogFilters() throws Exception
Exception
public void testConcurrentSlowLogEvents() throws Exception
Exception
public void testSlowLargeLogEvents() throws Exception
Exception
public void testSlowLogMixedFilters() throws Exception
Exception
static org.apache.hadoop.hbase.namequeues.RpcLogDetails getRpcLogDetails(String userName, String clientAddress, String className)
private org.apache.hadoop.hbase.namequeues.RpcLogDetails getRpcLogDetails(String userName, String clientAddress, String className, boolean isSlowLog, boolean isLargeLog)
private static org.apache.hadoop.hbase.ipc.RpcCall getRpcCall(String userName)
private static org.apache.hbase.thirdparty.com.google.protobuf.Message getMessage()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.