Details
Description
One of the things that this method does is delete entries from TXN_COMPONENTS for partition that it was trying to compact.
This causes Aborted transactions in TXNS to become empty according to
CompactionTxnHandler.cleanEmptyAbortedTxns() which means they can now be deleted.
Once they are deleted, data that belongs to these txns is deemed committed...
We should extend COMPACTION_QUEUE state with 'f' and 's' (failed, success) states. We should also not delete then entry from markedCleaned()
We'll have separate process that cleans 'f' and 's' records after X minutes (or after > N records for a given partition exist).
This allows SHOW COMPACTIONS to show some history info and how many times compaction failed on a given partition (subject to retention interval) so that we don't have to call markCleaned() on Compactor failures at the same time preventing Compactor to constantly getting stuck on the same bad partition/table.
Ideally we'd want to include END_TIME field.
Attachments
Attachments
Issue Links
- blocks
-
HIVE-11994 SHOW COMPACTIONS should include meta info about the job
- Open
- is blocked by
-
HIVE-12832 RDBMS schema changes for HIVE-11388
- Closed
-
HIVE-12352 CompactionTxnHandler.markCleaned() may delete too much
- Closed
- is related to
-
HIVE-12352 CompactionTxnHandler.markCleaned() may delete too much
- Closed
-
HIVE-13691 No record with CQ_ID=0 found in COMPACTION_QUEUE
- Closed
-
HIVE-11444 ACID Compactor should generate stats/alerts
- Open
- requires
-
HIVE-13353 SHOW COMPACTIONS should support filtering options
- Closed