Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-2319

cache.Task: reference to old pod object is kept after update

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • shim - kubernetes
    • None

    Description

      There is a kind of memory leak in the shim: when the pod is updated, the old pod object is still referenced from Task, so the GC has no chance to remove it (only when the pod terminates).
      See screenshot: task points to version 80199, scheduler cache already has a newer version 81216.

      We have two solutions:
      1. Update the object in the Task together with the scheduler cache
      2. Don't store the pointer to the pod, instead, always retrieve it from the scheduler cache

      Attachments

        1. 2024-01-09 134112.png
          351 kB
          Peter Bacsko
        2. 2024-01-09 134130.png
          317 kB
          Peter Bacsko

        Activity

          People

            pbacsko Peter Bacsko
            pbacsko Peter Bacsko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: