HBASE-8451 MetricsMBeanBase has concurrency issues in init (Liang Xie)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1476713 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4e28bd8bab
commit
e12e470d5f
|
@ -19,9 +19,9 @@
|
|||
package org.apache.hadoop.hbase.metrics;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import javax.management.AttributeNotFoundException;
|
||||
import javax.management.MBeanAttributeInfo;
|
||||
|
@ -57,8 +57,8 @@ public class MetricsMBeanBase extends MetricsDynamicMBeanBase {
|
|||
/** HBase MetricsBase implementations that MetricsDynamicMBeanBase does
|
||||
* not understand
|
||||
*/
|
||||
protected Map<String,MetricsBase> extendedAttributes =
|
||||
new HashMap<String,MetricsBase>();
|
||||
protected Map<String, MetricsBase> extendedAttributes =
|
||||
new ConcurrentHashMap<String, MetricsBase>();
|
||||
protected MBeanInfo extendedInfo;
|
||||
|
||||
protected MetricsMBeanBase( MetricsRegistry mr, String description ) {
|
||||
|
|
Loading…
Reference in New Issue