Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.1.0
-
None
Description
RMAppAttemptMetrics#getAggregateResourceUsage does a double-lookup on a concurrent hash map, but the app could be removed from the map between the two lookups:
RMApp rmApp = rmContext.getRMApps().get(attemptId.getApplicationId()); if (rmApp != null) { RMAppAttempt currentAttempt = rmContext.getRMApps().get(attemptId.getApplicationId()).getCurrentAppAttempt();
The attempt should be looked up within rmApp directly rather than redundantly trying to retrieve the RMApp first.
Attachments
Attachments
Issue Links
- is broken by
-
YARN-6232 Update resource usage and preempted resource calculations to take into account all resource types
- Resolved