-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Safe rotate upgrade marker file whenever it's written (#3953)
To prevent the upgrade marker file at the actual path from ever showing up as truncated or partially written it now writes the upgrade marker contents to a temporary file first, before safely rotating it into the upgrade marker file's actual path. --------- Co-authored-by: Pierre HILBERT <pierre.hilbert@elastic.co> Co-authored-by: Anderson Queiroz <anderson.queiroz@elastic.co>
- Loading branch information
1 parent
4856600
commit 64bbb2a
Showing
4 changed files
with
163 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 0 additions & 56 deletions
56
internal/pkg/agent/application/upgrade/marker_access_common_test.go
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters