Skip to content

Commit 8fda81e

Browse files
committed
HADOOP 9871. Fix intermittent findbugs warnings in DefaultMetricsSystem. (Junping Du via llu)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1514024 13f79535-47bb-0310-9956-ffa450edef68
1 parent 5c35d30 commit 8fda81e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

hadoop-common-project/hadoop-common/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ Release 2.3.0 - UNRELEASED
293293

294294
IMPROVEMENTS
295295

296+
HADOOP 9871. Fix intermittent findbugs warnings in DefaultMetricsSystem.
297+
(Junping Du via llu)
298+
296299
HADOOP-9319. Update bundled LZ4 source to r99. (Binglin Chang via llu)
297300

298301
HADOOP-9241. DU refresh interval is not configurable (harsh)

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/DefaultMetricsSystem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public enum DefaultMetricsSystem {
4646
@VisibleForTesting
4747
volatile boolean miniClusterMode = false;
4848

49-
final UniqueNames mBeanNames = new UniqueNames();
50-
final UniqueNames sourceNames = new UniqueNames();
49+
transient final UniqueNames mBeanNames = new UniqueNames();
50+
transient final UniqueNames sourceNames = new UniqueNames();
5151

5252
/**
5353
* Convenience method to initialize the metrics system

0 commit comments

Comments
 (0)