craigcondit commented on code in PR #429:
URL: https://github.com/apache/yunikorn-core/pull/429#discussion_r1028290813


##########
pkg/scheduler/objects/queue.go:
##########
@@ -1164,13 +1175,16 @@ func (sq *Queue) TryReservedAllocate(iterator func() 
NodeIterator) *Allocation {
                                                zap.String("appID", appID))
                                        return nil
                                }
-                               alloc := app.tryReservedAllocate(headRoom, 
iterator)
-                               if alloc != nil {
-                                       log.Logger().Debug("reservation found 
for allocation found on queue",
-                                               zap.String("queueName", 
sq.QueuePath),
-                                               zap.String("appID", appID),
-                                               zap.String("allocation", 
alloc.String()))
-                                       return alloc
+                               if app.IsStarting() || app.IsRunning() || 
app.IsAccepted() {
+                                       alloc := 
app.tryReservedAllocate(headRoom, iterator)
+                                       if alloc != nil {
+                                               log.Logger().Debug("Rainie test 
accepted apps: reservation found for allocation found on queue",

Review Comment:
   Can you remove your name from this log statement?



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