hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thejas M Nair (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-4628) HS2 sessionmanager should synchronize the call to insert/remove session objects from session hash map
Date Thu, 30 May 2013 16:28:21 GMT

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

Thejas M Nair commented on HIVE-4628:
-------------------------------------

Are you talking about handleToSession in SessionManager ? There is a "synchronized(sessionMapLock)
" block around access to it.

                
> HS2 sessionmanager should synchronize the call to insert/remove session objects from
session hash map
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-4628
>                 URL: https://issues.apache.org/jira/browse/HIVE-4628
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>    Affects Versions: 0.11.0
>            Reporter: Shreepadma Venugopalan
>            Assignee: Shreepadma Venugopalan
>            Priority: Critical
>
> HS2 SessionManager maintains a hashmap of active HS2 sessions. However, insert and deletes
to this hashmap is not synchronized. A consequence of this is a racing thread could overwrite
a valid session object in the hashmap and we could end up losing a session!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message