| Package | Description |
|---|---|
| org.apache.hadoop.hive.metastore.txn |
| Modifier and Type | Method and Description |
|---|---|
void |
TxnStore.abortTxn(AbortTxnRequest rqst)
Abort (rollback) a transaction.
|
void |
TxnStore.abortTxns(AbortTxnsRequest rqst)
Abort (rollback) a list of transactions in one request.
|
TxnStore.MutexAPI.LockHandle |
TxnStore.MutexAPI.acquireLock(String key)
The
key is name of the lock. |
void |
TxnStore.addDynamicPartitions(AddDynamicPartitions rqst)
Add information on a set of dynamic partitions that participated in a transaction.
|
void |
TxnStore.addWriteIdsToMinHistory(long txnId,
Map<String,Long> minOpenWriteIds) |
void |
TxnStore.addWriteNotificationLog(ListenerEvent acidWriteEvent)
Add the ACID write event information to writeNotificationLog table.
|
AllocateTableWriteIdsResponse |
TxnStore.allocateTableWriteIds(AllocateTableWriteIdsRequest rqst)
Allocate a write ID for the given table and associate it with a transaction
|
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.
|
LockResponse |
TxnLockManager.checkLock(long extLockId,
long txnId,
boolean zeroWaitReadEnabled,
boolean isExclusiveCTAS)
Check whether a lock has been obtained.
|
void |
TxnStore.cleanEmptyAbortedAndCommittedTxns()
Clean up aborted or committed transactions from txns that have no components in txn_components.
|
void |
TxnStore.cleanTxnToWriteIdTable()
Clean up entries from TXN_TO_WRITE_ID table less than min_uncommited_txnid as found by
min(max(TXNS.txn_id), min(WRITE_SET.WS_COMMIT_ID), min(Aborted TXNS.txn_id)).
|
long |
TxnStore.cleanupMaterializationRebuildLocks(ValidTxnList validTxnList,
long timeout) |
default void |
TxnStore.cleanupRecords(HiveObjectType type,
Database db,
Table table,
Iterator<Partition> partitionIterator)
Clean up corresponding records in metastore tables.
|
void |
TxnStore.cleanupRecords(HiveObjectType type,
Database db,
Table table,
Iterator<Partition> partitionIterator,
boolean keepTxnToWriteIdMetaData) |
void |
TxnStore.cleanupRecords(HiveObjectType type,
Database db,
Table table,
Iterator<Partition> partitionIterator,
long txnId) |
void |
TxnStore.clearCleanerStart(CompactionInfo info)
Removes the cleaning start time for a particular compaction
|
void |
TxnStore.commitTxn(CommitTxnRequest rqst)
Commit a transaction
|
CompactionResponse |
TxnStore.compact(CompactionRequest rqst)
Submit a compaction request into the queue.
|
void |
TxnStore.countOpenTxns()
Get the count for open transactions.
|
long |
TxnLockManager.enqueueLock(LockRequest rqst) |
List<String> |
TxnStore.findColumnsWithStats(CompactionInfo ci)
Queries metastore DB directly to find columns in the table which have statistics information.
|
long |
TxnStore.findMinOpenTxnIdForCleaner()
Return the currently seen minimum open transaction ID.
|
long |
TxnStore.findMinTxnIdSeenOpen()
Deprecated.
remove when min_history_level table is dropped
|
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.
|
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
|
CompactionMetricsData |
TxnStore.getCompactionMetricsData(String dbName,
String tblName,
String partitionName,
CompactionMetricsData.MetricType type)
Returns ACID metrics related info for a specific resource and metric type.
|
GetLatestCommittedCompactionInfoResponse |
TxnStore.getLatestCommittedCompactionInfo(GetLatestCommittedCompactionInfoRequest rqst)
Get one latest record of SUCCEEDED or READY_FOR_CLEANING compaction for a table/partition.
|
long |
TxnStore.getLatestTxnIdInConflict(long txnid) |
MaxAllocatedTableWriteIdResponse |
TxnStore.getMaxAllocatedTableWrited(MaxAllocatedTableWriteIdRequest rqst)
Reads the maximum allocated writeId for the given table
|
MetricsInfo |
TxnStore.getMetricsInfo()
Returns ACID metadata related metrics info.
|
GetOpenTxnsResponse |
TxnStore.getOpenTxns()
Get list of valid transactions.
|
GetOpenTxnsResponse |
TxnStore.getOpenTxns(List<TxnType> excludeTxnTypes)
Get list of valid transactions.
|
GetOpenTxnsInfoResponse |
TxnStore.getOpenTxnsInfo()
Get information about open transactions.
|
long |
TxnStore.getTargetTxnId(String replPolicy,
long sourceTxnId) |
List<CompactionMetricsData> |
TxnStore.getTopCompactionMetricsDataPerType(int limit)
Returns the top ACID metrics from each type
CompactionMetricsData.MetricType |
GetValidWriteIdsResponse |
TxnStore.getValidWriteIds(GetValidWriteIdsRequest rqst)
Gets the list of valid write ids for the given table wrt to current txn
|
void |
TxnStore.heartbeat(HeartbeatRequest ids)
Send a heartbeat for a lock or a transaction
|
boolean |
TxnStore.heartbeatLockMaterializationRebuild(String dbName,
String tableName,
long txnId) |
HeartbeatTxnRangeResponse |
TxnStore.heartbeatTxnRange(HeartbeatTxnRangeRequest rqst)
Heartbeat a group of transactions together
|
LockResponse |
TxnStore.lockMaterializationRebuild(String dbName,
String tableName,
long txnId) |
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.onRename(String oldCatName,
String oldDbName,
String oldTabName,
String oldPartName,
String newCatName,
String newDbName,
String newTabName,
String newPartName) |
OpenTxnsResponse |
TxnStore.openTxns(OpenTxnRequest rqst)
Open a set of transactions
|
void |
TxnStore.purgeCompactionHistory()
For any given compactable entity (partition, table if not partitioned) the history of compactions
may look like "sssfffaaasffss", for example.
|
void |
TxnStore.removeCompactionMetricsData(String dbName,
String tblName,
String partitionName,
CompactionMetricsData.MetricType type)
Remove records from the compaction metrics cache matching the filter criteria passed in as parameters
|
void |
TxnStore.removeDuplicateCompletedTxnComponents()
De-duplicate entries from COMPLETED_TXN_COMPONENTS table.
|
void |
TxnStore.replTableWriteIdState(ReplTblWriteIdStateRequest rqst)
Replicate Table Write Ids state to mark aborted write ids and writeid high water mark.
|
void |
TxnStore.revokeFromLocalWorkers(String hostname)
This will take all entries assigned to workers
on a host return them to INITIATED state.
|
void |
TxnStore.revokeTimedoutWorkers(long timeout)
This call will return all compaction queue
entries assigned to a worker but over the timeout back to the initiated state.
|
void |
TxnStore.seedTxnId(SeedTxnIdRequest rqst)
Sets the next txnId to the given value.
|
void |
TxnStore.seedWriteId(SeedTableWriteIdsRequest rqst)
Called on conversion of existing table to full acid.
|
void |
TxnStore.setCleanerRetryRetentionTimeOnError(CompactionInfo info)
Stores the value of
CompactionInfo.retryRetention and CompactionInfo.errorMessage fields
of the CompactionInfo either by inserting or updating the fields in the HMS database. |
void |
TxnStore.setHadoopJobId(String hadoopJobId,
long id)
Once a
ThreadPoolExecutor Worker submits a job to the cluster,
it calls this to update the metadata. |
ShowCompactResponse |
TxnStore.showCompact(ShowCompactRequest rqst)
Show list of current compactions.
|
ShowLocksResponse |
TxnLockManager.showLocks(ShowLocksRequest rqst)
Get information on current locks.
|
boolean |
TxnStore.submitForCleanup(CompactionRequest rqst,
long highestWriteId,
long txnId) |
void |
TxnLockManager.unlock(UnlockRequest rqst)
Unlock a lock.
|
boolean |
TxnStore.updateCompactionMetricsData(CompactionMetricsData data)
Create, update or delete one record in the compaction metrics cache.
|
void |
TxnStore.updateCompactorState(CompactionInfo ci,
long compactionTxnId)
This updates COMPACTION_QUEUE.
|
Copyright © 2024 The Apache Software Foundation. All rights reserved.