[ 
https://issues.apache.org/jira/browse/YUNIKORN-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tzu-Hua Lan reassigned YUNIKORN-2794:
-------------------------------------

    Assignee: Tzu-Hua Lan

> Resource: Change SubOnlyExisting() to same signature as AddOnlyExisting()
> -------------------------------------------------------------------------
>
>                 Key: YUNIKORN-2794
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2794
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: core - common
>            Reporter: Wilfred Spiegelenburg
>            Assignee: Tzu-Hua Lan
>            Priority: Major
>
> The AddOnlyExisting function takes two resource objects and returns a new 
> object. The SubOnlyExisting method is called on a resource receiver modifying 
> the receiver object. 
> These two should use the same kind of signature taking two resource objects 
> and returning a new object. In most use cases for SubOnlyExisting we do a 
> clone before we call within a locked method on an object that contains the 
> resource.
> This clone becomes obsolete when we make the change.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to