[9.5](backport #51940) Set shutdown timeout for beat receivers to 5s by default#51946
[9.5](backport #51940) Set shutdown timeout for beat receivers to 5s by default#51946mergify[bot] wants to merge 2 commits 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 Packetbeat Go integration job failed with one test failure, but the supplied Buildkite log does not include the failing assertion or error. It only shows the failure-only OTel configuration for Remediation
Investigation detailsRoot CauseInconclusive. The PR adds a default Evidence
VerificationNot run locally; this integration test requires the configured Elasticsearch integration environment, and the provided failure output lacks the assertion needed to reproduce the exact failure. Follow-upPlease provide the test collector artifact or rerun output before making a code change; otherwise a retry is the appropriate first action if the failure does not reproduce. 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).