[ 
https://issues.apache.org/jira/browse/HIVE-5290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13917305#comment-13917305
 ] 

Mithun Radhakrishnan commented on HIVE-5290:
--------------------------------------------

Hey, I've a dumb question about the synchronized block in HCatContext.setConf().

setConf() is a synchronized method on a singleton instance. How does the 
synchronized(conf){} block protect the iteration? Where exactly is conf being 
updated?
1. It can't be protection from modification within this function (because the 
method synchronized).
2. If it's external to this function, do we know that that code is synchronized 
on the same conf?


> Some HCatalog tests have been behaving flaky
> --------------------------------------------
>
>                 Key: HIVE-5290
>                 URL: https://issues.apache.org/jira/browse/HIVE-5290
>             Project: Hive
>          Issue Type: Test
>    Affects Versions: 0.13.0
>            Reporter: Brock Noland
>            Assignee: Brock Noland
>             Fix For: 0.13.0
>
>         Attachments: HIVE-5290.patch, HIVE-5290.patch, HIVE-5290.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to