hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karen Coppage (Jira)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-23533) Remove an FS#exists call from AcidUtils#getLogicalLength
Date Wed, 27 May 2020 05:46:00 GMT

     [ 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, HIVE-23533.01.patch, 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)

Mime
View raw message