Skip to content

use atomic write to initially create alias mapping - #5039

Merged
generall merged 1 commit into
devfrom
atomic-create-alias-config
Sep 7, 2024
Merged

generall merged 1 commit into
devfrom
atomic-create-alias-config

Conversation

@generall

@generall generall commented Sep 6, 2024

Copy link
Copy Markdown
Member

It is possible that service if shut down after file is created, but before data is fsynced, which may leave us with empty file
(this reproduces on filesystem-level snapshots)

If we use atomic writes, it should be impossible to end up with corrupted file

@agourlay agourlay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@generall
generall merged commit 53f0186 into dev Sep 7, 2024
@generall
generall deleted the atomic-create-alias-config branch September 7, 2024 13:29
@timvisee

timvisee commented Sep 9, 2024

Copy link
Copy Markdown
Member

Nice find. Thanks for the patch.

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.

3 participants