-
Notifications
You must be signed in to change notification settings - Fork 175
Expose UpdateMarkerFile func with transactional lock #8449
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
base: main
Are you sure you want to change the base?
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.
I think we are missing a testcase.
This change is also opening the possibility for caller of (load|save)MarkerToPath
to read/write the update marker in an unsafe way with the isSafe
parameters.
@pchila i resolved everything because i redid how this is executed |
…tic-agent into feat/upgrade_marker
This pull request is now in conflicts. Could you fix it? 🙏
|
|
💚 Build Succeeded
History
|
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.
The code changes LGTM, @pchila please do have a look 🙂
I would put this on hold until we have a clearer idea if we want to maintain locking for the upgrade marker file. |
Complementary function to work introduced in #8254
Allows read-modify-write withing single transational lock