[
https://issues.apache.org/jira/browse/HIVE-25075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rajesh Balamohan resolved HIVE-25075.
-------------------------------------
Fix Version/s: 4.0.0
Assignee: Rajesh Balamohan
Resolution: Fixed
Thanks for the review [~aasha] .
I have merged the PR.
> Hive::loadPartitionInternal establishes HMS connection for every partition
> for external tables
> ----------------------------------------------------------------------------------------------
>
> Key: HIVE-25075
> URL: https://issues.apache.org/jira/browse/HIVE-25075
> Project: Hive
> Issue Type: Improvement
> Reporter: Rajesh Balamohan
> Assignee: Rajesh Balamohan
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java#L2522
> {code}
> boolean needRecycle = !tbl.isTemporary()
> &&
> ReplChangeManager.shouldEnableCm(Hive.get().getDatabase(tbl.getDbName()),
> tbl.getTTable());
> {code}
> Hive.get() breaks the current connection with HMS. Due to this, for external
> table partition loads, it establishes HMS connection for partition.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)