Description
++refCount here in init should be symmetric to --refCount in shutdown.
public synchronized MetricsSystem init(String prefix) { if (monitoring && !DefaultMetricsSystem.inMiniClusterMode()) { LOG.warn(this.prefix +" metrics system already initialized!"); return this; } this.prefix = checkNotNull(prefix, "prefix"); ++refCount;
Move ++refCount to the beginning of this method.
Attachments
Attachments
Issue Links
- breaks
-
HADOOP-14974 org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestContainerAllocation fails in trunk
- Resolved
- duplicates
-
HADOOP-14974 org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestContainerAllocation fails in trunk
- Resolved