[
https://issues.apache.org/jira/browse/HIVE-25830?focusedWorklogId=702856&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-702856
]
ASF GitHub Bot logged work on HIVE-25830:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 03/Jan/22 07:19
Start Date: 03/Jan/22 07:19
Worklog Time Spent: 10m
Work Description: rbalamohan merged pull request #2904:
URL: https://github.com/apache/hive/pull/2904
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 702856)
Time Spent: 50m (was: 40m)
> Hive::loadPartitionInternal occur connection leak
> -------------------------------------------------
>
> Key: HIVE-25830
> URL: https://issues.apache.org/jira/browse/HIVE-25830
> Project: Hive
> Issue Type: Bug
> Reporter: tenglei
> Priority: Major
> Labels: pull-request-available
> Time Spent: 50m
> 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)