Class SlowLogPersistentService
java.lang.Object
org.apache.hadoop.hbase.namequeues.SlowLogPersistentService
Persistent service provider for Slow/LargeLog events
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.Configuration
private static final int
private static final ReentrantLock
private static final org.slf4j.Logger
private final Queue<org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload>
private static final String
private static final int
-
Constructor Summary
ConstructorDescriptionSlowLogPersistentService
(org.apache.hadoop.conf.Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllLogsToSysTable
(Connection connection) Poll from queueForSysTable and insert 100 records in hbase:slowlog table in single batchvoid
addToQueueForSysTable
(org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload slowLogPayload)
-
Field Details
-
LOG
-
LOCK
-
SYS_TABLE_QUEUE_SIZE
- See Also:
-
DEFAULT_SYS_TABLE_QUEUE_SIZE
- See Also:
-
SYSTABLE_PUT_BATCH_SIZE
- See Also:
-
queueForSysTable
private final Queue<org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload> queueForSysTable -
configuration
-
-
Constructor Details
-
SlowLogPersistentService
-
-
Method Details
-
addToQueueForSysTable
public void addToQueueForSysTable(org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload slowLogPayload) -
addAllLogsToSysTable
Poll from queueForSysTable and insert 100 records in hbase:slowlog table in single batch
-