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 2014/11/20 19:21:34 UTC

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

Ted Yu created HIVE-8927:
----------------------------

             Summary: 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)