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)