YARN-9915: Fix FindBug issue in QueueMetrics. Contributed by Prabhu Joseph.
(cherry picked from commit 83d148074f
)
This commit is contained in:
parent
0f64ed89d2
commit
ea574087d1
|
@ -467,7 +467,7 @@ public class QueueMetrics implements MetricsSource {
|
||||||
2; i < resources.length; i++) {
|
2; i < resources.length; i++) {
|
||||||
ResourceInformation resource =
|
ResourceInformation resource =
|
||||||
resources[i];
|
resources[i];
|
||||||
customResources.put(resource.getName(), new Long(0));
|
customResources.put(resource.getName(), Long.valueOf(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
registerCustomResources(customResources, ALLOCATED_RESOURCE_METRIC_PREFIX,
|
registerCustomResources(customResources, ALLOCATED_RESOURCE_METRIC_PREFIX,
|
||||||
|
|
Loading…
Reference in New Issue