pbacsko commented on code in PR #597:
URL: https://github.com/apache/yunikorn-core/pull/597#discussion_r1276300550
##########
pkg/scheduler/objects/application.go:
##########
@@ -1712,6 +1715,17 @@ func (sa *Application) ReplaceAllocation(uuid string)
*Allocation {
if sa.placeholderData != nil {
sa.placeholderData[ph.GetTaskGroup()].Replaced++
}
+
+ // check if we have active placeholder allocation left
+ hasReplaceablePlaceholder := false
+ for _, phData := range sa.placeholderData {
Review Comment:
-You're right, we have `hasPlaceHolderAllocations :=
len(sa.getPlaceholderAllocations()) > 0` which can be used for this purpose.-
EDIT: Ok, that's actually a different method (request, not allocation).
--
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]