chungen0126 commented on a change in pull request #384:
URL: 
https://github.com/apache/incubator-yunikorn-core/pull/384#discussion_r826667483



##########
File path: pkg/scheduler/objects/application_state.go
##########
@@ -171,6 +175,9 @@ func NewAppState() *fsm.FSM {
                        },
                        fmt.Sprintf("leave_%s", Running.String()): func(event 
*fsm.Event) {
                                app := event.Args[0].(*Application) 
//nolint:errcheck
+                               if app.queue != nil {
+                                       app.queue.runningApps--

Review comment:
       I think that it just needs to be blocked and doesn't need to start here. 
It will still be allocated first by the rmEventHandler.




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