You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2015/02/01 03:02:34 UTC

[jira] [Resolved] (HIVE-8927) Potential race condition on modification of dirtyAttributeInfoCache in MetricsMBeanImpl#getMBeanInfo()

     [ https://issues.apache.org/jira/browse/HIVE-8927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Yu resolved HIVE-8927.
--------------------------
    Resolution: Later

> Potential race condition on modification of dirtyAttributeInfoCache in MetricsMBeanImpl#getMBeanInfo()
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-8927
>                 URL: https://issues.apache.org/jira/browse/HIVE-8927
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> {code}
>     public MBeanInfo getMBeanInfo() {
>         if (dirtyAttributeInfoCache) {
>           synchronized(metricsMap) {
>             attributeInfos = new MBeanAttributeInfo[metricsMap.size()];
> {code}
> The check of dirtyAttributeInfoCache is outside the synchronized block.
> There is possibility that different attributeInfos are returned due to race condition.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)