You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Alexander Kolbasov (JIRA)" <ji...@apache.org> on 2018/04/11 20:14:00 UTC

[jira] [Created] (HIVE-19177) ObjectStore.setConf() is doing dangerous work while holding global lock

Alexander Kolbasov created HIVE-19177:
-----------------------------------------

             Summary: ObjectStore.setConf() is doing dangerous work while holding global lock
                 Key: HIVE-19177
                 URL: https://issues.apache.org/jira/browse/HIVE-19177
             Project: Hive
          Issue Type: Bug
          Components: Metastore
    Affects Versions: 2.0.2, 3.0.0, 3.1.0
            Reporter: Alexander Kolbasov


The {{ObjectStore.setConf()}} function grabs static {{pmfPropLock}} and then calls {{initialize}} which goes through DataNucleus, accesses database, waits on DB thread pools, retries with sleep, etc, all while holding the lock.

This is rather dangerous and expensive since no one else can call setConf at the same time on a different instance. All of these should be done without holding the lock.

[~vihangk1] FYI.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)