[
https://issues.apache.org/jira/browse/YUNIKORN-2638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Craig Condit resolved YUNIKORN-2638.
------------------------------------
Fix Version/s: 1.7.0
Resolution: Fixed
Merged to master.
> Simplify finalizeNodes and finalizePods
> ---------------------------------------
>
> Key: YUNIKORN-2638
> URL: https://issues.apache.org/jira/browse/YUNIKORN-2638
> Project: Apache YuniKorn
> Issue Type: Improvement
> Components: shim - kubernetes
> Reporter: Wilfred Spiegelenburg
> Assignee: Ted Lin
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.7.0
>
>
> In finalizeNodes and finalizePods a map is created to store the newly
> retrieved pods and nodes. The map is only used as a reference and the pod and
> node objects themselves are not used.
> Instead of storing the objects the maps could use a boolean value to store.
> This also simplifies the check later for the existence of the node or pod to
> just a single map lookup.
> We should also set the size of the map, length of the nodes or pod list
> retrieved, to prevent any re-allocation during the map filling.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]