-
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
[Elastic Agent] Fix composed.Verifier so files are removed when invalid #30281
Conversation
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
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.
LGTM
@blakerouse I would prefer we don't target 8.1/8.0, we are working to stabilize that release and we still don't know the other issue root cause. I find it risky to introduce it late. |
I was able to test this with docker locally to confirm that it fixes the behavior:
|
@ph I think this will mask the issue in 8.1.0, ultimately solving the corruption issue. But you are correct that it doesn't answer how it gets that way. |
This pull request does not have a backport label. Could you fix it @blakerouse? 🙏
NOTE: |
/package |
@blakerouse Yes, I think this is the problem we would mask the issues, and add traffic to the cloud deployment. :( |
Added backport to other version, lets see if mergify pick them up. |
…id (#30281) (#30497) * Fix composed.Verifier. * Add tests and changelog. (cherry picked from commit e6c1950) Co-authored-by: Blake Rouse <[email protected]>
…id (#30281) (#30498) * Fix composed.Verifier. * Add tests and changelog. (cherry picked from commit e6c1950) Co-authored-by: Blake Rouse <[email protected]>
What does this PR do?
Fixes an issue in the
composed.Verifier
. Without this change if any verifier failed before the final verifier it would not remove the files and the last verifier in the chain would never be called to remove the files. This fixes the issue to always have each verifier have the ability to remove the files when it fails to verify.Why is it important?
Without this change when a downloaded artifact gets corrupted, the Elastic Agent will keep trying to verify the same file, instead of removing it and re-downloading it from artifacts.
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration filesCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues