You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "chenruotao (Jira)" <ji...@apache.org> on 2023/11/06 10:16:00 UTC
[jira] [Updated] (HIVE-27854) Driver compile may causing memory leak
[ https://issues.apache.org/jira/browse/HIVE-27854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
chenruotao updated HIVE-27854:
------------------------------
Attachment: image-2023-11-06-18-13-43-182.png
image-2023-11-06-18-13-00-842.png
image-2023-11-06-18-11-47-832.png
Description:
when submit a sql to hiveserver, if the sql query timeout before compile, it will continue compile and execute addShutdownHook, but now no thread to call the close method of driver, so it alway stay in ShutdownHookManager's hooks, causing a memory leak
!image-2023-11-06-18-11-47-832.png!
the cancel from SQLOperation will set it's driver = null, so it can not call the close method of driver
!image-2023-11-06-18-13-43-182.png!
!image-2023-11-06-18-13-00-842.png!
was:when submit a sql to hiveserver, if the sql query timeout before compile, it will continue compile and execute addShutdownHook, but now no thread to call the close method of driver, so it alway stay in ShutdownHookManager's hooks, causing a memory leak
> Driver compile may causing memory leak
> --------------------------------------
>
> Key: HIVE-27854
> URL: https://issues.apache.org/jira/browse/HIVE-27854
> Project: Hive
> Issue Type: Bug
> Components: Hive
> Affects Versions: 3.1.2, 4.0.0-beta-1
> Reporter: chenruotao
> Assignee: chenruotao
> Priority: Major
> Attachments: image-2023-11-06-18-11-47-832.png, image-2023-11-06-18-13-00-842.png, image-2023-11-06-18-13-43-182.png
>
>
> when submit a sql to hiveserver, if the sql query timeout before compile, it will continue compile and execute addShutdownHook, but now no thread to call the close method of driver, so it alway stay in ShutdownHookManager's hooks, causing a memory leak
> !image-2023-11-06-18-11-47-832.png!
> the cancel from SQLOperation will set it's driver = null, so it can not call the close method of driver
> !image-2023-11-06-18-13-43-182.png!
> !image-2023-11-06-18-13-00-842.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)