[ 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