You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Eugene Koifman (JIRA)" <ji...@apache.org> on 2019/02/08 21:47:00 UTC
[jira] [Commented] (HIVE-21225) ACID: getAcidState() should cache a
recursive dir listing locally
[ https://issues.apache.org/jira/browse/HIVE-21225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16763911#comment-16763911 ]
Eugene Koifman commented on HIVE-21225:
---------------------------------------
perhaps an easier/better solution is to add another suffix to the base/delta dir name to indicate the "type" - i.e. acid or raw. Then {{isRawFormat}} would just look at dir name.
> ACID: getAcidState() should cache a recursive dir listing locally
> -----------------------------------------------------------------
>
> Key: HIVE-21225
> URL: https://issues.apache.org/jira/browse/HIVE-21225
> Project: Hive
> Issue Type: Improvement
> Components: Transactions
> Reporter: Gopal V
> Priority: Major
>
> Currently getAcidState() makes 3 calls into the FS api which could be answered by making a single recursive listDir call and reusing the same data to check for isRawFormat() and isValidBase().
> All delta operations for a single partition can go against a single listed directory snapshot instead of interacting with the NameNode or ObjectStore within the inner loop.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)