The Kayenta metric.Provider implementation returns AnalysisPhaseRunning in some cases, so it can get a Terminate call, but it does not provide a meaningful implementation. It looks like this can result in a resource leak upon AnalysisRun termination because the metric provider will always respond with a measurement phase of AnalysisPhaseRunning here.
Discovered statically when attempting to implement a metric provider plugin.
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.
The Kayenta
metric.Providerimplementation returnsAnalysisPhaseRunningin some cases, so it can get aTerminatecall, but it does not provide a meaningful implementation. It looks like this can result in a resource leak uponAnalysisRuntermination because the metric provider will always respond with a measurement phase ofAnalysisPhaseRunninghere.Discovered statically when attempting to implement a metric provider plugin.
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.