You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Ayub Pathan (Jira)" <ji...@apache.org> on 2020/06/17 18:28:00 UTC

[jira] [Created] (YUNIKORN-230) Incorrect application state returned for "ws/v1/apps" REST call

Ayub Pathan created YUNIKORN-230:
------------------------------------

             Summary: Incorrect application state returned for "ws/v1/apps" REST call
                 Key: YUNIKORN-230
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-230
             Project: Apache YuniKorn
          Issue Type: Bug
          Components: core - scheduler
            Reporter: Ayub Pathan


 

*Steps to reproduce:*
 * Deploy the job
 * Check the status

{noformat}
kubectl get pods -n development                                                                           
NAME       READY   STATUS    RESTARTS   AGE
sleepjob   1/1     Running   0          26s {noformat}
 * Verify the API response, it still shows as starting..

{noformat}
[
    {
        "allocations": [
            {
                "allocationKey": "11fc645b-b0c7-11ea-aeee-0e65480c53e2",
                "allocationTags": null,
                "applicationId": "abcd",
                "nodeId": "ip-10-192-172-176.ca-central-1.compute.internal",
                "partition": "default",
                "priority": "<nil>",
                "queueName": "root.development",
                "resource": "[memory:50 vcore:100]",
                "uuid": "5a35de0b-b0d4-4434-9f17-3618faa0e247"
            }
        ],
        "applicationID": "abcd",
        "applicationState": "Starting",
        "partition": "[mycluster]default",
        "queueName": "root.development",
        "submissionTime": 1592417964439019878,
        "usedResource": "[memory:50 vcore:100]"
    }
] {noformat}
 * Job completed
{noformat}
kubectl get pods -n development                                                                           
NAME       READY   STATUS      RESTARTS   AGE
sleepjob   0/1     Completed   0          60s {noformat}

 * Still API response shows the status as STARTING
{noformat}
[
    {
        "allocations": null,
        "applicationID": "abcd",
        "applicationState": "Starting",
        "partition": "[mycluster]default",
        "queueName": "root.development",
        "submissionTime": 1592417964439019878,
        "usedResource": "[memory:0 vcore:0]"
    }
] {noformat}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org