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

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

                Author: ASF GitHub Bot
            Created on: 06/Jun/22 00:18
            Start Date: 06/Jun/22 00:18
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] commented on PR #3183:
URL: https://github.com/apache/hive/pull/3183#issuecomment-1146915615

   This pull request has been automatically marked as stale because it has not 
had recent activity. It will be closed if no further activity occurs.
   Feel free to reach out on the [email protected] list if the patch is in 
need of reviews.




Issue Time Tracking
-------------------

    Worklog Id:     (was: 778477)
    Time Spent: 20m  (was: 10m)

> hive metastore connection leaking when hiveserver2 kerberos enable and  
> hive.server2.enable.doAs set to true
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-26075
>                 URL: https://issues.apache.org/jira/browse/HIVE-26075
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 1.2.0
>            Reporter: liuguanghua
>            Assignee: liuguanghua
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-26075.patch
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> (1)When hadoop cluster  kerberos is enable
> (2) HiveServer2 config hive.server2.enable.doAs is set true
> After a beeline   scripte has been executed, hivemetastore connection  is 
> created are in ESTABLISHED state and never closed.
> If we submit a lot of task to hiveserver2 ,this will result in hive metastore 
> thrift thread(default is 1000) full ,thus new task will fail.
>  
> HiveServer2 use ThreadLocal<Hive>  to store multithreading  metastore 
> connection,the application should call Hive.closeCurrent() to close 
> connection after  task finished.
>  
> When HiveServer2 impersonate is enable (hive.server2.enable.doAs is set 
> true), the ugi   will create proxy user via  
> UserGroupInformation.createProxyUser(
> owner, UserGroupInformation.getLoginUser()),the old metastore client is never 
> closed.
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to