[
https://issues.apache.org/jira/browse/YUNIKORN-1722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Craig Condit updated YUNIKORN-1722:
-----------------------------------
Summary: Excessive resource clone calls in calculateNodesResourceUsage()
(was: excessive resource clone calls in calculateNodesResourceUsage)
> Excessive resource clone calls in calculateNodesResourceUsage()
> ---------------------------------------------------------------
>
> Key: YUNIKORN-1722
> URL: https://issues.apache.org/jira/browse/YUNIKORN-1722
> Project: Apache YuniKorn
> Issue Type: Bug
> Components: core - scheduler, metrics
> Reporter: Wilfred Spiegelenburg
> Assignee: Wilfred Spiegelenburg
> Priority: Critical
> Labels: pull-request-available
> Fix For: 1.3.0
>
> Attachments: image.png
>
>
> The node calculateNodesResourceUsage clones theĀ resource object inside a
> loop. The clone is correct as the allocated resource could be changed while
> the calculation is happening in the scheduling cycle. However it should not
> happen inside the loop.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]