[
https://issues.apache.org/jira/browse/HIVE-25830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rajesh Balamohan resolved HIVE-25830.
-------------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Thanks for the review [~maheshk114] . Committed changes to master.
> Hive::loadPartitionInternal occur connection leak
> -------------------------------------------------
>
> Key: HIVE-25830
> URL: https://issues.apache.org/jira/browse/HIVE-25830
> Project: Hive
> Issue Type: Bug
> Reporter: tenglei
> Assignee: Rajesh Balamohan
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> when Hive::loadPartitionInternal is invoked and there's no metastore
> connection in Hive.ThreadLocalHive, will create a metastore connection for
> Hive.ThreadLocalHive, if external part hold the Hive.ThreadLocalHive for
> cache, and Hive.ThreadLocalHive update in some special scene, this will cause
> external part hold the different Hive object to Hive.ThreadLocalHive.
> when external part want to create a metastore connection by invoking
> Hive::loadPartitionInternal, Hive will create a metastore connection for
> Hive.ThreadLocalHive, not for external part's holding.so these can cause a
> connection leaks easliy.
> I found it will cause a metastore connection leak in spark-beeline when
> invoke Hive::loadPartitionInternal.
> there's a commit HIVE-25075 relate before, I think it should remove the
> Hive.get() in Hive::loadPartitionInternal at the same time.
> [~rbalamohan]
--
This message was sent by Atlassian Jira
(v8.20.1#820001)