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

Metrics code cleanup

    XMLWordPrintableJSON

Details

    Description

      There are unused methods in the metrics subsystem:
      AddQueuePendingResourceMetrics()
      AddQueuePreemptingResourceMetrics()
      AddQueueAllocatedResourceMetrics()
      (there might be others)

      The production code does not call these methods and there are no unit tests either.

      We can also consider removing the interfaces. Right now there is just one implementation for everything (CoreQueueMetrics, CoreSchedulerMetrics, GoRuntimeMetrics). We don't need to mock metrics because it's very lightweight, resetting the state is trivial.

      Attachments

        Issue Links

          Activity

            People

              brandboat Kuan Po Tseng
              pbacsko Peter Bacsko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: