hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xialu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-19624) the method closeSession of SessionManager has a synchronized, is it able to be removed?
Date Wed, 24 Jul 2019 03:20:00 GMT

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

xialu commented on HIVE-19624:
------------------------------

we encounter the same question,  any updated?  have you already remove synchronized keyword
and do some tests?

> the method closeSession of SessionManager  has a synchronized, is it able to be removed?
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-19624
>                 URL: https://issues.apache.org/jira/browse/HIVE-19624
>             Project: Hive
>          Issue Type: Wish
>          Components: HiveServer2
>    Affects Versions: 2.1.1
>            Reporter: xulongfetion
>            Assignee: Naveen Gangam
>            Priority: Minor
>
> The methods closeSession of 
> org.apache.hive.service.cli.session.SessionManager use 
> synchronized for thread safe, i looked at the code and wonder why there's need for synchronized.
> Because closeSession sometimes use the hadoop ipc call and takes too much time to response,
so if it is possible to remove the keyword synchronized.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message