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

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

                Author: ASF GitHub Bot
            Created on: 24/Mar/22 09:39
            Start Date: 24/Mar/22 09:39
    Worklog Time Spent: 10m 
      Work Description: deniskuzZ commented on a change in pull request #3127:
URL: https://github.com/apache/hive/pull/3127#discussion_r834104965



##########
File path: 
metastore/scripts/upgrade/hive/upgrade-3.1.0-to-4.0.0-alpha-1.hive.sql
##########
@@ -318,7 +318,7 @@ SELECT
   CC_PARTITION,
   CASE WHEN CC_TYPE = 'i' THEN 'minor' WHEN CC_TYPE = 'a' THEN 'major' ELSE 
'UNKNOWN' END,
   CASE WHEN CC_STATE = 'f' THEN 'failed' WHEN CC_STATE = 's' THEN 'succeeded'
-    WHEN CC_STATE = 'a' THEN 'did not initiate' ELSE 'UNKNOWN' END,
+    WHEN CC_STATE = 'a' THEN 'did not initiate'  WHEN 'c' THEN 'refused' ELSE 
'UNKNOWN' END,

Review comment:
       ````WHEN CC_STATE = 's'````




-- 
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-unsubscr...@hive.apache.org

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


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

    Worklog Id:     (was: 747056)
    Time Spent: 40m  (was: 0.5h)

> 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
>              Labels: pull-request-available
>          Time Spent: 40m
>  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)

Reply via email to