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

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

                Author: ASF GitHub Bot
            Created on: 26/Nov/19 10:39
            Start Date: 26/Nov/19 10:39
    Worklog Time Spent: 10m 
      Work Description: pvary commented on pull request #854: HIVE-22537: 
getAcidState() not saving directory causes multiple files…
URL: https://github.com/apache/hive/pull/854#discussion_r350662374
 
 

 ##########
 File path: ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java
 ##########
 @@ -1728,23 +1755,15 @@ private static void getChildState(Path 
candidateDirectory, List<HdfsDirSnapshot>
           aborted.add(dirPath);
         } else if (writeIdList.isWriteIdRangeValid(delta.minWriteId,
             delta.maxWriteId) != ValidWriteIdList.RangeResponse.NONE) {
-          if (delta.isRawFormat) {
-            for (FileStatus stat : dirSnapshot.getFiles()) {
-              if ((!ignoreEmptyFiles) || (stat.getLen() != 0)) {
-                original.add(createOriginalObj(null, stat));
-              }
-            }
-          } else {
-            working.add(delta);
-          }
+          working.add(delta);
         }
       } else {
         if (!candidateDirectory.equals(dirPath)) {
 
 Review comment:
   Is this always true, because of the change above?
 
----------------------------------------------------------------
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:
[email protected]


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

    Worklog Id:     (was: 349695)
    Time Spent: 0.5h  (was: 20m)

> getAcidState() not saving directory snapshot causes multiple calls to S3 api
> ----------------------------------------------------------------------------
>
>                 Key: HIVE-22537
>                 URL: https://issues.apache.org/jira/browse/HIVE-22537
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>            Reporter: Mustafa Iman
>            Assignee: Mustafa Iman
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-22537.2.patch, HIVE-22537.patch
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Fix for HIVE-21225 is not enabled in query coordinator codepath. The last 
> argument (generateDirSnapshots) for getAcidState() is set to false when 
> invoked by callInternal(). Also, snapshot is not used for file exists calls.



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

Reply via email to