wilfred-s commented on a change in pull request #175:
URL: 
https://github.com/apache/incubator-yunikorn-core/pull/175#discussion_r444276966



##########
File path: pkg/scheduler/scheduling_application.go
##########
@@ -163,6 +167,7 @@ func (sa *SchedulingApplication) 
removeAllocationAsk(allocKey string) int {
                deltaPendingResource = sa.pending
                sa.pending = resources.NewResource()
                sa.requests = make(map[string]*schedulingAllocationAsk)
+               sa.sortedRequestsDirty = true

Review comment:
       `sortedRequest` is a copied sorted slice and not the original map. The 
value is removed from the original map but we need to recreate the sorted slice 
before we use it again otherwise we might have an entry in the slice that does 
not exist causing scheduling errors.




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

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


Reply via email to