[ https://issues.apache.org/jira/browse/HIVE-10778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14554896#comment-14554896 ]
Thejas M Nair commented on HIVE-10778: -------------------------------------- [~sershe] 1. Yes SessionState.get().isHiveServerQuery() is a good way to check if its in HS2. 2. Compilation threads do get re-used across queries. Something that shouldn't be re-used across sessions should ideally be part of objects mapped to Driver objects lifetime. > LLAP: Utilities::gWorkMap needs thread-locals for HiveServer2 > ------------------------------------------------------------- > > Key: HIVE-10778 > URL: https://issues.apache.org/jira/browse/HIVE-10778 > Project: Hive > Issue Type: Sub-task > Components: HiveServer2 > Affects Versions: llap > Reporter: Gopal V > Assignee: Sergey Shelukhin > Fix For: llap > > Attachments: HIVE-10778.patch, llap-hs2-heap.png > > > 95% of heap is occupied by the Utilities::gWorkMap in the llap branch HS2. > !llap-hs2-heap.png! -- This message was sent by Atlassian JIRA (v6.3.4#6332)