YARN-11054. Alleviate LocalJobRunnerMetricName Conflicts

This commit is contained in:
haomarch 2021-12-28 12:05:21 +08:00
parent ebdbe7eb82
commit 7e1bcf62a8
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ final class LocalJobRunnerMetrics {
public static LocalJobRunnerMetrics create() {
MetricsSystem ms = DefaultMetricsSystem.initialize("JobTracker");
return ms.register("LocalJobRunnerMetrics-" +
ThreadLocalRandom.current().nextInt(), null,
ThreadLocalRandom.current().nextLong(), null,
new LocalJobRunnerMetrics());
}