zhuqi-lucas commented on code in PR #950:
URL: https://github.com/apache/yunikorn-core/pull/950#discussion_r1721492263


##########
pkg/scheduler/objects/application.go:
##########
@@ -648,6 +649,7 @@ func (sa *Application) AddAllocationAsk(ask *Allocation) 
error {
        // Update total pending resource
        delta.SubFrom(oldAskResource)
        sa.pending = resources.Add(sa.pending, delta)
+       sa.pending.Prune()

Review Comment:
   Keep this for add, because delta seems will be negative in some case.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to