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

Fix inconsistent lock behavior in application.go

    XMLWordPrintableJSON

Details

    Description

      The Application object in pkg/scheduler/objects/application.go has inconsistent locking in several places:

      • getPlaceholderAllocations() accesses the allocations map unlocked which might cause issues.
      • Usages of clearStateTimer() also should be checked.
      • HandleApplicationEvent() and OnStateChange() assume the lock is held. However, timeoutStateTimer() calls HandleApplicationEvent() with no lock held.

      We should look for any other potential issues here as well.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: