[ https://issues.apache.org/jira/browse/HIVE-24636?focusedWorklogId=543622&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-543622 ]
ASF GitHub Bot logged work on HIVE-24636: ----------------------------------------- Author: ASF GitHub Bot Created on: 28/Jan/21 12:38 Start Date: 28/Jan/21 12:38 Worklog Time Spent: 10m Work Description: zmatyus opened a new pull request #1923: URL: https://github.com/apache/hive/pull/1923 ### 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 543622) Time Spent: 2h (was: 1h 50m) > 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: 2h > 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)