YARN-9915: Fix FindBug issue in QueueMetrics. Contributed by Prabhu Joseph.
This commit is contained in:
parent
3f7756dc6c
commit
83d148074f
|
@ -465,7 +465,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