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

node.go#GetAvailableResource ought to use read-lock instead of readwrite-lock

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      see https://github.com/apache/yunikorn-core/blob/master/pkg/scheduler/objects/node.go#L264

      The other similar methods (`GetAllocatedResource`, `GetOccupiedResource`, and `GetCapacity`) are using read-lock, so `GetAvailableResource` ought to apply read-lock too.

      Attachments

        Activity

          People

            lowc1012 Ryan Lo
            chia7712 Chia-Ping Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: