Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-201 [Umbrella] Application tracking API and CRD - phase 1
  3. YUNIKORN-268

When deleting a deployment the application is not deleted from the shim cache

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce:

      1. submit an example such as nginx example: 

      related log entry:

      2020-07-08T15:15:54.683Z DEBUG general/general.go:155 pod added {"appType": "general", "Name": "nginx-556d7c974d-sn7kf", "Namespace": "default", "NeedsRecovery": false}
      2020-07-08T15:15:54.684Z DEBUG cache/context.go:185 adding pod to cache {"podName": "nginx-556d7c974d-sn7kf"}
      2020-07-08T15:15:54.684Z DEBUG cache/context.go:455 AddApplication {"Request": {"Metadata":{"ApplicationID":"example2","QueueName":"root.sandbox","User":"default","Tags":{"namespace":"default"}},"Recovery":false}}
      2020-07-08T15:15:54.684Z DEBUG cache/context.go:465 app namespace info {"appID": "example2", "namespace": "default"}
      2020-07-08T15:15:54.684Z INFO cache/context.go:495 app added {"appID": "example2", "recovery": false}
      2020-07-08T15:15:54.684Z DEBUG cache/context.go:526 AddTask {"appID": "example2", "taskID": "8fe2c175-1521-41aa-a3a8-bf7f47668b6c", "isRecovery": false}

      2. delete the example 

      3. submit again the example, or any job with the same applicationId

      related log entry:

      2020-07-08T15:25:21.754Z DEBUG general/general.go:155 pod added {"appType": "general", "Name": "nginx-556d7c974d-qtxfg", "Namespace": "default", "NeedsRecovery": false}
      2020-07-08T15:25:21.754Z DEBUG general/general.go:155 pod added {"appType": "general", "Name": "nginx-556d7c974d-qtxfg", "Namespace": "default", "NeedsRecovery": false}
      2020-07-08T15:25:21.754Z DEBUG cache/context.go:526 AddTask {"appID": "example2", "taskID": "c4191833-cbdf-4143-ab53-c5cc2ccddf43", "isRecovery": false}2020-07-08T15:25:21.754Z DEBUG cache/context.go:185 adding pod to cache {"podName": "nginx-556d7c974d-qtxfg"}
      2020-07-08T15:25:21.754Z INFO cache/context.go:542 task added {"appID": "example2", "taskID": "c4191833-cbdf-4143-ab53-c5cc2ccddf43", "taskState": "New"}

      When submitting the example again with the same application ID, the related application will be already found in cache, so the add application part will be skipped.
       

      Attachments

        Issue Links

          Activity

            People

              tingyao TingYao Huang
              kmarton Kinga Marton
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: