[ 
https://issues.apache.org/jira/browse/YUNIKORN-402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17191747#comment-17191747
 ] 

Kinga Marton commented on YUNIKORN-402:
---------------------------------------

I did today a quick check and I found the following things:
 * in case of submitting an application CRD without any tasks, the application 
state will remain New  - here we can add a step to change its state to Waiting.
 * incase of an application with allocations, the status will be changed to 
Waiting if after releasing the allocation all the below markers are zero
 ## pending is zero (no more asks left)
 ##  if confirmed allocations is zero (nothing is running)
 ## if there are no allocations in flight
 * The related code is the following one: 
[https://github.com/apache/incubator-yunikorn-core/blob/master/pkg/scheduler/scheduling_application.go#L198-L204]

According to the code, in case of the Spark application, after the last 
release, the status of the application should change to waiting. [~Huang Ting 
Yao] can you sent the stacktrace of your application? Until then I will try to 
reproduce it with a simple sleep job instead of the spark one.

> Make sure when there is no allocation in an app, the app state is "Waiting".
> ----------------------------------------------------------------------------
>
>                 Key: YUNIKORN-402
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-402
>             Project: Apache YuniKorn
>          Issue Type: Sub-task
>            Reporter: Kinga Marton
>            Assignee: Kinga Marton
>            Priority: Major
>
> If there is no allocation for an app, according to 
> [http://yunikorn.apache.org/docs/next/design/scheduler_object_states] it's 
> status should be waiting instead of running, as mentioned here: 
> https://issues.apache.org/jira/browse/YUNIKORN-201?focusedCommentId=17186402&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17186402



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: issues-h...@yunikorn.apache.org

Reply via email to