Skip to content

Commit

Permalink
Prevent kibana crashing when multiple processes start APM telemetry t…
Browse files Browse the repository at this point in the history
…ask in parallel (elastic#87645) (elastic#87923)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
rudolf and kibanamachine authored Jan 12, 2021
1 parent 6ab982b commit 2bee289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/apm/server/lib/apm_telemetry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export async function createApmTelemetry({
logger.debug(
`Stored telemetry is out of date. Task will run immediately. Stored: ${currentData.kibanaVersion}, expected: ${kibanaVersion}`
);
taskManagerStart.runNow(APM_TELEMETRY_TASK_NAME);
await taskManagerStart.runNow(APM_TELEMETRY_TASK_NAME);
}
} catch (err) {
if (!SavedObjectsErrorHelpers.isNotFoundError(err)) {
Expand Down

0 comments on commit 2bee289

Please sign in to comment.