[
https://issues.apache.org/jira/browse/YUNIKORN-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wilfred Spiegelenburg resolved YUNIKORN-839.
--------------------------------------------
Fix Version/s: 0.12
Resolution: Fixed
Thank you, change committed issue is fixed.
> getNodesUtilJSON is broken
> --------------------------
>
> Key: YUNIKORN-839
> URL: https://issues.apache.org/jira/browse/YUNIKORN-839
> Project: Apache YuniKorn
> Issue Type: Bug
> Components: core - common
> Affects Versions: 0.10, 0.11
> Reporter: Wilfred Spiegelenburg
> Assignee: Ting Yao,Huang
> Priority: Critical
> Labels: pull-request-available
> Fix For: 0.12
>
>
> In {{getNodesUtilJSON()}} is only calculated for resources that are defined
> on a partition level. These might be the same resources as defined in the
> nodes or they might not be.
> When walking over the node the last node visited will ultimately set the
> {{resourceExists}} flag. If I have a set of 2 nodes one that has the resource
> GPU defined and one that has not the outcome of the call will be different
> for the order the nodes get visited.
> If the node with GPU is visited last the second loop will be entered with
> {{resourceExists}} true if it was checked first {{resourceExists}} will be
> false.
> That means the output of the call is unreliable, it also means that any web
> UI parts that display the details cannot be relied on.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]