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

Handle nil properly in queue metrics

    XMLWordPrintableJSON

Details

    Description

      We support setting maxResource/ guaranteed resource to nil, but the metrics update is wrong because we don't update it from previous value update to zero/nil, for example:

      https://github.com/apache/yunikorn-core/blob/7c51e82f09720b014159e0ba2f48d5e600a1f96c/pkg/scheduler/objects/queue.go#L415

      https://github.com/apache/yunikorn-core/blob/7c51e82f09720b014159e0ba2f48d5e600a1f96c/pkg/scheduler/objects/queue.go#L441

      Attachments

        Issue Links

          Activity

            People

              zhuqi Qi Zhu
              zhuqi Qi Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: