You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Rajesh Balamohan (Jira)" <ji...@apache.org> on 2021/04/29 22:46:00 UTC
[jira] [Assigned] (HIVE-24806) Compactor: Initiator should lazy
evaluate findUserToRunAs()
[ https://issues.apache.org/jira/browse/HIVE-24806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rajesh Balamohan reassigned HIVE-24806:
---------------------------------------
Assignee: Rajesh Balamohan
> Compactor: Initiator should lazy evaluate findUserToRunAs()
> -----------------------------------------------------------
>
> Key: HIVE-24806
> URL: https://issues.apache.org/jira/browse/HIVE-24806
> Project: Hive
> Issue Type: Improvement
> Reporter: Rajesh Balamohan
> Assignee: Rajesh Balamohan
> Priority: Major
> Labels: pull-request-available
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> https://github.com/apache/hive/blob/64bb52316f19426ebea0087ee15e282cbde1d852/ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Initiator.java#L232
> {noformat}
> cache.putIfAbsent(fullTableName, findUserToRunAs(sd.getLocation(), t));
> {noformat}
> This ends up evaluating findUserToRunAs() everytime, and looks up from FileSystem on every call (thousands of times in large database).
> This can be lazy initialized instead (e.g computeIfAbsent);
--
This message was sent by Atlassian Jira
(v8.3.4#803005)