[
https://issues.apache.org/jira/browse/HIVE-19631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16484453#comment-16484453
]
Thejas M Nair commented on HIVE-19631:
--------------------------------------
AbstractService.getHiveConf has been synchronized since the very first commit
of HS2. But I don't see any reason why needs to be synchronized. I think we can
just remove the synchronization of it and register/unregister. These methods on
the service are not called concurrently from different threads.
getDelegationTokenFromMetaStore can also be made not synchronous. Its making a
remote api call with thread local Hive object.
> reduce epic locking in AbstractService
> --------------------------------------
>
> Key: HIVE-19631
> URL: https://issues.apache.org/jira/browse/HIVE-19631
> Project: Hive
> Issue Type: Bug
> Reporter: Sergey Shelukhin
> Assignee: Sergey Shelukhin
> Priority: Major
> Attachments: HIVE-19631.patch
>
>
> Some services have synchronized method that do lengthy remote calls, and
> these block everyone trying to e.g. getHiveConf.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)