Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
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
- links to