forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race in monitoring output (elastic#8646)
The action part of the bulk request used to be a constant (used to use 'var' for init purposes only), but with 6.4 we have had to introduce the `index._type` field per monitoring type. With the introduction of telemetry we ended up with 2 publisher pipelines and 2 outputs, each with slightly different parameters, yet the action part has become a 'global' shared variable, that was modified by each reporter. If metrics and telemetry publish events at the same time, there is a race in modifying the global and serializing the bulk request. This change removes the global and creates an action item per event, such that there will be no sharing at all.
- Loading branch information
Steffen Siering
authored
Oct 19, 2018
1 parent
1012302
commit 1438000
Showing
2 changed files
with
11 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters