[9.3](backport #51940) Set shutdown timeout for beat receivers to 5s by default#51948
[9.3](backport #51940) Set shutdown timeout for beat receivers to 5s by default#51948mergify[bot] wants to merge 1 commit into
Conversation
Beat receivers need a longer timeout than the default 1s, as it needs to exceed the batcher flush timeout. The current code gives the impression of this already happening, but in reality, if the beater handles pipeline shutdown on its own, the default timeout wins. (cherry picked from commit 8f4bbab)
🤖 GitHub commentsJust comment with:
|
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
TL;DRThe Remediation
Investigation detailsRoot CauseThe failed job runs The shutdown-timeout implementation in Evidence
Verification
What is this? | From workflow: PR Buildkite Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
Proposed commit message
Set shutdown timeout for beat receivers to 5s by default.
Beat receivers need a longer timeout than the default 1s, as it needs to exceed the batcher flush timeout. The current code gives the impression of this already happening, but in reality, if the beater handles pipeline shutdown on its own, the default timeout wins.
The PR adds the default in
NewBeatForReceiverand adds a test for filebeat receiver which asserts that the timeout is at least 5 seconds.Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration filesstresstest.shscript to run them under stress conditions and race detector to verify their stability.[ ] I have added an entry in./changelog/fragmentsusing the changelog tool.Related issues
This is an automatic backport of pull request #51940 done by [Mergify](https://mergify.com).