Skip to content
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

[8.15](backport #5329) Fixes issue where context cancelling could result in an invalid error being reported #5482

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Sep 9, 2024

What does this PR do?

When the Fleet checkin look context is cancelled it no longer will return an error in rare cases.

Why is it important?

Possible to cause an error to be reported when it was just context cancellation.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • [ ] 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 works
  • [ ] I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Disruptive User Impact

None

Related issues


This is an automatic backport of pull request #5329 done by [Mergify](https://mergify.com).

… being reported (#5329)

* Fix issue.

* Update internal/pkg/agent/application/gateway/fleet/fleet_gateway.go

Co-authored-by: Paolo Chilà <paolo.chila@elastic.co>

* Remove check for failed as it no-longer gets marked failed.

---------

Co-authored-by: Paolo Chilà <paolo.chila@elastic.co>
Co-authored-by: Pierre HILBERT <pierre.hilbert@elastic.co>
Co-authored-by: Julien Lind <julien.lind@elastic.co>
Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
(cherry picked from commit 96e02e0)
@mergify mergify bot requested a review from a team as a code owner September 9, 2024 20:47
@mergify mergify bot added the backport label Sep 9, 2024
@mergify mergify bot requested review from blakerouse and swiatekm and removed request for a team September 9, 2024 20:47
@blakerouse blakerouse enabled auto-merge (squash) September 9, 2024 21:18
@blakerouse blakerouse merged commit 2541a5b into 8.15 Sep 9, 2024
14 checks passed
@blakerouse blakerouse deleted the mergify/bp/8.15/pr-5329 branch September 9, 2024 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant