| Constructor and Description |
|---|
CommitCompactionEvent(Long txnId,
CompactionInfo ci) |
CommitCompactionEvent(Long txnId,
CompactionInfo ci,
IHMSHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
CompactionInfo |
TxnStore.findNextToCompact(FindNextCompactRequest rqst)
This will grab the next compaction request off of the queue, and assign it to the worker.
|
CompactionInfo |
TxnStore.findNextToCompact(String workerId)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Set<CompactionInfo> |
TxnStore.findPotentialCompactions(int abortedThreshold,
long abortedTimeThreshold)
This will look through the completed_txn_components table and look for partitions or tables
that may be ready for compaction.
|
Set<CompactionInfo> |
TxnStore.findPotentialCompactions(int abortedThreshold,
long abortedTimeThreshold,
long lastChecked) |
List<CompactionInfo> |
TxnStore.findReadyToClean(long minOpenTxnWaterMark,
long retentionTime)
Find entries in the queue that are ready to
be cleaned.
|
List<CompactionInfo> |
TxnStore.findReadyToCleanAborts(long abortedTimeThreshold,
int abortedThreshold)
Find the aborted entries in TXN_COMPONENTS which can be used to
clean directories belonging to transactions in aborted state.
|
Optional<CompactionInfo> |
TxnStore.getCompactionByTxnId(long txnId)
Returns the compaction running in the transaction txnId
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
TxnStore.checkFailedCompactions(CompactionInfo ci)
Determine if there are enough consecutive failures compacting a table or partition that no
new automatic compactions should be scheduled.
|
void |
TxnStore.clearCleanerStart(CompactionInfo info)
Removes the cleaning start time for a particular compaction
|
List<String> |
TxnStore.findColumnsWithStats(CompactionInfo ci)
Queries metastore DB directly to find columns in the table which have statistics information.
|
void |
TxnStore.markCleaned(CompactionInfo info)
This will remove an entry from the queue after
it has been compacted.
|
void |
TxnStore.markCleanerStart(CompactionInfo info)
Sets the cleaning start time for a particular compaction
|
void |
TxnStore.markCompacted(CompactionInfo info)
This will mark an entry in the queue as compacted
and put it in the ready to clean state.
|
void |
TxnStore.markFailed(CompactionInfo info)
Mark a compaction entry as failed.
|
void |
TxnStore.markRefused(CompactionInfo info)
Mark a compaction as refused (to run).
|
void |
TxnStore.setCleanerRetryRetentionTimeOnError(CompactionInfo info)
Stores the value of
retryRetention and errorMessage fields
of the CompactionInfo either by inserting or updating the fields in the HMS database. |
void |
TxnStore.updateCompactorState(CompactionInfo ci,
long compactionTxnId)
This updates COMPACTION_QUEUE.
|
| Modifier and Type | Method and Description |
|---|---|
static CompactionInfo |
CompactionInfo.compactionStructToInfo(CompactionInfoStruct cr) |
static CompactionInfo |
CompactionInfo.loadFullFromCompactionQueue(ResultSet rs)
loads object from a row in Select * from COMPACTION_QUEUE
|
static CompactionInfo |
CompactionInfo.optionalCompactionInfoStructToInfo(OptionalCompactionInfoStruct ocis) |
| Modifier and Type | Method and Description |
|---|---|
static OptionalCompactionInfoStruct |
CompactionInfo.compactionInfoToOptionalStruct(CompactionInfo ci) |
static CompactionInfoStruct |
CompactionInfo.compactionInfoToStruct(CompactionInfo ci) |
int |
CompactionInfo.compareTo(CompactionInfo o) |
| Constructor and Description |
|---|
InsertCompactionInfoCommand(CompactionInfo ci,
long compactionEndTime) |
| Modifier and Type | Method and Description |
|---|---|
CompactionInfo |
NextCompactionFunction.execute(MultiDataSourceJdbcResource jdbcResource) |
| Modifier and Type | Method and Description |
|---|---|
Set<CompactionInfo> |
FindPotentialCompactionsFunction.execute(MultiDataSourceJdbcResource jdbcResource) |
| Constructor and Description |
|---|
MarkCleanedFunction(CompactionInfo info) |
| Modifier and Type | Method and Description |
|---|---|
CompactionInfo |
GetCompactionInfoHandler.extractData(ResultSet rs) |
| Modifier and Type | Method and Description |
|---|---|
Set<CompactionInfo> |
CompactionCandidateHandler.extractData(ResultSet rs) |
List<CompactionInfo> |
ReadyToCleanHandler.extractData(ResultSet rs) |
List<CompactionInfo> |
ReadyToCleanAbortHandler.extractData(ResultSet rs) |
Set<CompactionInfo> |
AbortedTxnHandler.extractData(ResultSet rs) |
List<CompactionInfo> |
AbortTxnInfoHandler.extractData(ResultSet rs) |
| Constructor and Description |
|---|
CheckFailedCompactionsHandler(org.apache.hadoop.conf.Configuration conf,
CompactionInfo ci) |
FindColumnsWithStatsHandler(CompactionInfo ci) |
Copyright © 2024 The Apache Software Foundation. All rights reserved.