chenyulin0719 commented on code in PR #1129:
URL: https://github.com/apache/yunikorn-core/pull/1129#discussion_r3791647804


##########
pkg/scheduler/partition.go:
##########
@@ -1350,7 +1350,7 @@ func (pc *PartitionContext) UpdateAllocation(alloc 
*objects.Allocation) (request
        return false, false, nil
 }
 
-func (pc *PartitionContext) handleForeignAllocation(allocationKey, 
applicationID, nodeID string, node *objects.Node, alloc *objects.Allocation) 
(requestCreated bool, allocCreated bool, err error) {

Review Comment:
   After changing to (bool, bool, error), this causes a semantic loss — these 
return values are inherited from UpdateAllocation.
   
   Maybe we should add a doc comment for it?



-- 
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