From 83d148074f9299de02d5c896a3ed4e11292cba73 Mon Sep 17 00:00:00 2001 From: Eric E Payne Date: Mon, 21 Oct 2019 20:30:50 +0000 Subject: [PATCH] YARN-9915: Fix FindBug issue in QueueMetrics. Contributed by Prabhu Joseph. --- .../yarn/server/resourcemanager/scheduler/QueueMetrics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/QueueMetrics.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/QueueMetrics.java index 8f60c6b48c..1b926a43e0 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/QueueMetrics.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/QueueMetrics.java @@ -465,7 +465,7 @@ private void registerCustomResources() { 2; i < resources.length; i++) { ResourceInformation resource = resources[i]; - customResources.put(resource.getName(), new Long(0)); + customResources.put(resource.getName(), Long.valueOf(0)); } registerCustomResources(customResources, ALLOCATED_RESOURCE_METRIC_PREFIX,