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

Simplify the cache Context.SelectApplications function

    XMLWordPrintableJSON

Details

    Description

      In production code, we only use cache Context.SelectApplications in KubernetesShim.schedule with a nil filter.

      In testing code, MockScheduler.waitAndAssertApplicationState and MockScheduler.waitAndAssertTaskState use it to filter apps by application ID, but this can be replaced by cache Context.GetApplication.

      So we can use a new function GetAllApplications, and remove SelectApplications in the code base.

      Attachments

        Issue Links

          Activity

            People

              yangpoan PoAn Yang
              yangpoan PoAn Yang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified