-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[filebeat][gcs] - Added missing locks for safe concurrency #34914
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
@efd6, updated this PR as suggested with the relevant fixes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The packaging failure appears to be due to stale jessie. This will be fixed with #34921.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix for the packaging job is merged, ship it :)
This pull request is now in conflicts. Could you fix it? 🙏
|
* added missing locks for safe concurrency * updated asciidoc * updated asciidoc * updated locks for publishing events * added nil state fail safe mechanism --------- Co-authored-by: Denis <denis.rechkunov@elastic.co> (cherry picked from commit 62a2700)
… concurrency (#34986) * [filebeat][gcs] - Added missing locks for safe concurrency (#34914) * added missing locks for safe concurrency * updated asciidoc * updated asciidoc * updated locks for publishing events * added nil state fail safe mechanism --------- Co-authored-by: Denis <denis.rechkunov@elastic.co> (cherry picked from commit 62a2700) * Update CHANGELOG.next.asciidoc --------- Co-authored-by: ShourieG <105607378+ShourieG@users.noreply.github.com>
* added missing locks for safe concurrency * updated asciidoc * updated asciidoc * updated locks for publishing events * added nil state fail safe mechanism --------- Co-authored-by: Denis <denis.rechkunov@elastic.co>
Type of change
What does this PR do?
Adds safety mutex locks on state maps in some methods which were missing it.
Why is it important?
Some users faced concurrency issue with multiple workers, which raised this issue.
Checklist
- [ ] I have made corresponding changes to the documentation- [ ] I have made corresponding change to the default configuration files- [ ] I have added tests that prove my fix is effective or that my feature worksCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues