[Telemetry] Possible race condition in stack_stats search reporting #89744
Labels
Feature:Telemetry
PR sent
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
I believe the metrics collection code found here can result in a possible race condition:
kibana/src/plugins/data/server/search/collectors/usage.ts
Lines 30 to 60 in 170a295
This could result in telemetry data that is inaccurate. I believe moving the increment and average calculation to thread safe implementations should fix it.
The text was updated successfully, but these errors were encountered: