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 on shared maps in global fields (elastic#6947)
* Fix race on shared maps in global fields On publish fields are added to an event in this order: - local/global configured fields - dynamic fields - "beat" metadata When merging the fields, shared structures must not be overwritten or updated concurrently. This is enforced by cloning the original fields structure before applying updates. This adds missing Clone operations if configured fields add new fields to the `beat` namespace or if dynamic fields are enabled. * Remove hard coded bool from testing
- Loading branch information
Showing
2 changed files
with
28 additions
and
8 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