[
https://issues.apache.org/jira/browse/HIVE-24636?focusedWorklogId=542835&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-542835
]
ASF GitHub Bot logged work on HIVE-24636:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 27/Jan/21 13:43
Start Date: 27/Jan/21 13:43
Worklog Time Spent: 10m
Work Description: zmatyus opened a new pull request #1917:
URL: https://github.com/apache/hive/pull/1917
### What changes were proposed in this pull request?
When a class loader is being closed, it should also be released from the
`org.apache.commons.logging.LogFactory#factories`, where it is being used as a
key.
### Why are the changes needed?
Current implementation has a slow but steady memory leak.
### Does this PR introduce any user-facing change?
No
### How was this patch tested?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 542835)
Time Spent: 40m (was: 0.5h)
> Memory leak due to stacking UDFClassLoader in Apache Commons LogFactory
> -----------------------------------------------------------------------
>
> Key: HIVE-24636
> URL: https://issues.apache.org/jira/browse/HIVE-24636
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2
> Affects Versions: 3.1.0
> Reporter: dohongdayi
> Priority: Major
> Labels: pull-request-available
> Attachments: HIVE-24636.1.patch.txt
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Much the same asĀ [HIVE-7563|https://issues.apache.org/jira/browse/HIVE-7563],
> after ClassLoader is closed in JavaUtils, it should be released by Apache
> Commons LogFactory, or the ClassLoader can't be Garbage Collected, which
> leads to memory leak, exactly our PROD met.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)