[ 
https://issues.apache.org/jira/browse/HIVE-27201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17716189#comment-17716189
 ] 

Zhihua Deng edited comment on HIVE-27201 at 10/10/23 1:14 AM:
--------------------------------------------------------------

Attach a document to explain the case.

Thank you all for the test, review and merge the PR!


was (Author: dengzh):
Attach a document to elaborate the case.

Thank you all for the test, review and merge the PR!

> Inconsistency between session Hive and thread-local Hive may cause HS2 
> deadlock
> -------------------------------------------------------------------------------
>
>                 Key: HIVE-27201
>                 URL: https://issues.apache.org/jira/browse/HIVE-27201
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>            Reporter: Zhihua Deng
>            Assignee: Zhihua Deng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0-beta-1
>
>         Attachments: HIVE-27201.pdf
>
>          Time Spent: 7h 20m
>  Remaining Estimate: 0h
>
> The HiveServer2’s server handler can switch to process the operation from 
> other session, in such case, the Hive cached in ThreadLocal is not the same 
> as the Hive in SessionState, and can be referenced by another session. 
> If the two handlers swap their sessions to process the DatabaseMetaData 
> request, and the HiveMetastoreClientFactory obtains the Hive via Hive.get(), 
> then there is a chance that the deadlock can happen.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to