You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/03/22 12:41:00 UTC

[jira] [Work logged] (HIVE-26059) Eventually clean compactions in "refused" state from compaction history

     [ https://issues.apache.org/jira/browse/HIVE-26059?focusedWorklogId=745792&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-745792 ]

ASF GitHub Bot logged work on HIVE-26059:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 22/Mar/22 12:40
            Start Date: 22/Mar/22 12:40
    Worklog Time Spent: 10m 
      Work Description: veghlaci05 opened a new pull request #3127:
URL: https://github.com/apache/hive/pull/3127


   ### What changes were proposed in this pull request?
   Purge refused compactions from COMPLETED_COMPACTIONS.
   
   ### Why are the changes needed?
   Compactions in states succeeded, failed, and did not initiate have a retention threshold (example: metastore.compactor.history.retention.succeeded) and are purged from COMPLETED_COMPACTIONS if the number of compactions in this state per partition/unpartitioned table passes the threshold. This behaviour should also be applied to compactions in REFUSED state.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Manually, and through unit tests.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 745792)
    Remaining Estimate: 0h
            Time Spent: 10m

> Eventually clean compactions in "refused" state from compaction history
> -----------------------------------------------------------------------
>
>                 Key: HIVE-26059
>                 URL: https://issues.apache.org/jira/browse/HIVE-26059
>             Project: Hive
>          Issue Type: Improvement
>          Components: Hive
>            Reporter: László Végh
>            Assignee: László Végh
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Compactions in states succeeded, failed, and did not initiate have a retention threshold (example: metastore.compactor.history.retention.succeeded) and are purged from COMPLETED_COMPACTIONS if the number of compactions in this state per partition/unpartitioned table passes the threshold. This keeps the size of COMPLETED_COMPACTIONS in check.
> We should also purge refused compactions from COMPLETED_COMPACTIONS.
> See:
> CompactionTxnHandler#purgeCompactionHistory
> ! Also: REFUSED_RESPONSE should be added to org.apache.hadoop.hive.metastore.txn.TxnStore#COMPACTION_STATES so that metrics will be collected about it.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)