[
https://issues.apache.org/jira/browse/HIVE-23800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17154134#comment-17154134
]
Zhihua Deng commented on HIVE-23800:
------------------------------------
The oom hook holds a hiveserver2 instance, which calls hiveserver2::stop() to
end hiveserver2 gracefully, which would cleanup the scratch(staging)
directory/operation log and so on . Although the hooks in the driver can handle
oom, he may not be able to stop the hiveserver2 gracefully as the oom hook
does. Sometimes we may want to dump the heap for futher analysis when oom
happens or alter the devops, so it may be better to make the oom hook here an
interface.
> Make HiveServer2 oom hook interface
> -----------------------------------
>
> Key: HIVE-23800
> URL: https://issues.apache.org/jira/browse/HIVE-23800
> Project: Hive
> Issue Type: Improvement
> Components: HiveServer2
> Reporter: Zhihua Deng
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> Make oom hook an interface of HiveServer2, so user can implement the hook to
> do something before HS2 stops, such as dumping the heap or altering the
> devops.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)