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)

Reply via email to