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

Deadlock when evaluating nodes for preemption

    XMLWordPrintableJSON

Details

    Description

      During preemption predicate checks, we have a read lock that can be acquired multiple times without releasing, leading to deadlocks. Problematic ocde is in context.IsPodFitNodeViaPreemption(), where ctx.schedulerCache.GetPod() is called after ctx.schedulerCache.LockForReads(). Both functions acquire the cache rlock.

      Attachments

        Issue Links

          Activity

            People

              ccondit Craig Condit
              ccondit Craig Condit
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: