You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2021/11/08 16:07:39 UTC

[GitHub] [hive] klcopp commented on a change in pull request #2741: HIVE-25631: Initiator speed-up: only read compaction history once per…

klcopp commented on a change in pull request #2741:
URL: https://github.com/apache/hive/pull/2741#discussion_r744857505



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Initiator.java
##########
@@ -508,14 +540,6 @@ private boolean isEligibleForCompaction(CompactionInfo ci,
         return false;
       }
 
-      if (txnHandler.checkFailedCompactions(ci)) {

Review comment:
       Can remove org.apache.hadoop.hive.metastore.txn.CompactionTxnHandler#checkFailedCompactions
   (it is now only called by unit tests)

##########
File path: ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Initiator.java
##########
@@ -474,9 +508,7 @@ private boolean isEligibleForCompaction(CompactionInfo ci,
       // as it may be time to compact again even though we haven't cleaned.
       // todo: this is not robust. You can easily run `alter table` to start a compaction between
       // the time currentCompactions is generated and now

Review comment:
       Maybe add another comment here about what "failed compactions" means




-- 
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



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org