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

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

                Author: ASF GitHub Bot
            Created on: 18/Mar/21 12:39
            Start Date: 18/Mar/21 12:39
    Worklog Time Spent: 10m 
      Work Description: deniskuzZ commented on a change in pull request #2086:
URL: https://github.com/apache/hive/pull/2086#discussion_r596828645



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Worker.java
##########
@@ -523,6 +524,15 @@ protected Boolean findNextCompactionAndExecute(boolean 
computeStats) throws Inte
       final StatsUpdater su = computeStats ? StatsUpdater.init(ci, 
msc.findColumnsWithStats(
           CompactionInfo.compactionInfoToStruct(ci)), conf,
           runJobAsSelf(ci.runAs) ? ci.runAs : t.getOwner()) : null;
+      // result directory for compactor to write new files
+      Path resultDir = null;
+      if (ci.type == CompactionType.MAJOR) {

Review comment:
       Could this be simplified to just: 
   Path resultDir = QueryCompactor.Util.getCompactionResultDir(sd, 
tblValidWriteIds, conf, 
                ci.type == CompactionType.MAJOR, false, false, null);




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

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


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

    Worklog Id:     (was: 568310)
    Time Spent: 50m  (was: 40m)

> Failed compaction does not cleanup the directories
> --------------------------------------------------
>
>                 Key: HIVE-24900
>                 URL: https://issues.apache.org/jira/browse/HIVE-24900
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>            Reporter: Ramesh Kumar Thangarajan
>            Assignee: Ramesh Kumar Thangarajan
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Failed compaction does not cleanup the directories



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to