[ 
https://issues.apache.org/jira/browse/HIVE-23800?focusedWorklogId=458476&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-458476
 ]

ASF GitHub Bot logged work on HIVE-23800:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Jul/20 06:47
            Start Date: 14/Jul/20 06:47
    Worklog Time Spent: 10m 
      Work Description: kgyrtkirk commented on pull request #1205:
URL: https://github.com/apache/hive/pull/1205#issuecomment-658002425


   when I was using some of these hooks earlier: they are too specific to some 
purpose.
   right now the proposed callback is a {{Runnable}} ... which means you will 
have to create a completely new one in case you want to pass some things to it 
later...
   
   so...I would recommend the following:
   * remove the "oom" keyword from the name of the hook/etc - it could be diag, 
debug or something like that
   * add a callback which has 2 arguments:
     * a callback type (some enum; which should have a value which is specific 
to "oom")
     * some callback payload object to which we can add things later on... it 
could be an object using the {{Adaptable}} pattern
   
   all this stuff is to make it a bit more reusable if we need to reuse it 
later on...


----------------------------------------------------------------
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: 458476)
    Time Spent: 2h  (was: 1h 50m)

> Add hooks when HiveServer2 stops due to OutOfMemoryError
> --------------------------------------------------------
>
>                 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: 2h
>  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)

Reply via email to