Description
Reproducing steps
- Setup a cluster and sets yarn.resourcemanager.placement-constraints.enabled to true
- Submit a DS job with placement constraint, such as -placement_spec foo=2,NOTIN,NODE,foo
- Check cluster metrics from http://<RM_ADDRESS>/cluster/apps
when job is running, Containers Running, Memory Used and VCore Used were not updated (except AM), metrics from containers allocated by the PlacementProcessor were not accumulated to the cluster metrics; however when job is done, the resource were deducted. Then UI displays like following:
- Containers Running: -2
- Memory Used: -400
- VCores Used: -2
Looks like AppSchedulingInfo#updateMetricsForAllocatedContainer was not called when allocating a container.