You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Karen Coppage (Jira)" <ji...@apache.org> on 2020/05/22 14:10:00 UTC

[jira] [Updated] (HIVE-23533) Remove an FS#exists call from AcidUtils#getLogicalLength

     [ https://issues.apache.org/jira/browse/HIVE-23533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karen Coppage updated HIVE-23533:
---------------------------------
    Attachment: HIVE-23533.01.patch
        Status: Patch Available  (was: Open)

> Remove an FS#exists call from AcidUtils#getLogicalLength
> --------------------------------------------------------
>
>                 Key: HIVE-23533
>                 URL: https://issues.apache.org/jira/browse/HIVE-23533
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Karen Coppage
>            Assignee: Karen Coppage
>            Priority: Major
>         Attachments: HIVE-23533.01.patch
>
>
> {code:java}
>  Path lengths = OrcAcidUtils.getSideFile(file.getPath());
>     if(!fs.exists(lengths)) {
> ...
>       return file.getLen();
>     }
>     long len = OrcAcidUtils.getLastFlushLength(fs, file.getPath());
> {code}
> OrcAcidUtils.getLastFlushLength also has an exists() check and returns Long.MAX_VALUE if false.
> exists() is expensive on S3.



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