[
https://issues.apache.org/jira/browse/HIVE-23830?focusedWorklogId=456931&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-456931
]
ASF GitHub Bot logged work on HIVE-23830:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 10/Jul/20 01:05
Start Date: 10/Jul/20 01:05
Worklog Time Spent: 10m
Work Description: mustafaiman opened a new pull request #1235:
URL: https://github.com/apache/hive/pull/1235
Each query creates a shutdownRunner which will release transactional
resources in case JVM exits mid-query. These shutdownRunners are not removed
until session is closed. Session lifetime is unbounded. These shutdown hooks
can cause OOM. We should remove them once query is committed or rolled back.
Change-Id: I0b747bbfb2a451c2be1a28f21d4fb6354f76ee5a
## NOTICE
Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HIVE-XXXXX: Fix a typo in YYY)
For more details, please see
https://cwiki.apache.org/confluence/display/Hive/HowToContribute
----------------------------------------------------------------
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: 456931)
Remaining Estimate: 0h
Time Spent: 10m
> Remove shutdownhook after query is completed
> --------------------------------------------
>
> Key: HIVE-23830
> URL: https://issues.apache.org/jira/browse/HIVE-23830
> Project: Hive
> Issue Type: Bug
> Reporter: Mustafa Iman
> Assignee: Mustafa Iman
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Each query registers a shutdownHook to release transactional resources in
> case JVM shuts down mid query. These hooks are not cleaned up until session
> is closed. Session life time is unbounded. So these hooks are a memory leak.
> They should be cleaned as soon as transaction is completed.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)