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

[CI Run] diagd: atomically write the ADS config #5258

Closed
wants to merge 1 commit into from
Closed

Conversation

LanceEa
Copy link
Contributor

@LanceEa LanceEa commented Aug 22, 2023

DO NOT MERGE - CI run for #5103

note: I have rebased on recent master but no other changes.

Write the generated ADS config to a temporary file first, then rename the file. This ensure that the update is atomic and that ambex won't load a partially written file.

Fix #5093

Write the generated ADS config to a temporary file first, then rename
the file. This ensure that the update is atomic and that ambex won't
load a partially written file.

Fix #5093

Signed-off-by: Thibault Deutsch <[email protected]>
@LanceEa
Copy link
Contributor Author

LanceEa commented Aug 29, 2023

Merged original PR already and closing CI run PR.

@LanceEa LanceEa closed this Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ambex: failing to load envoy.json can result in "empty" snapshot being pushed to Envoy
2 participants