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

Use O_SYNC for filestore meta files when SyncAlways is enabled #5729

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

neilalexander
Copy link
Member

@neilalexander neilalexander commented Jul 31, 2024

This will use O_SYNC when writing meta.inf, meta.sum and meta.key files for both streams and consumers when the SyncAlways filestore option is enabled. It will also do the same when writing the consumer state file, or rewriting it if we are converting between ciphers.

Signed-off-by: Neil Twigg neil@nats.io

@neilalexander neilalexander requested a review from a team as a code owner July 31, 2024 15:45
Signed-off-by: Neil Twigg <neil@nats.io>
@neilalexander neilalexander changed the title Optionally use O_SYNC when writing some stream/consumer meta files Use O_SYNC for filestore meta files when SyncAlways is enabled Jul 31, 2024
…ed encryption keys

Signed-off-by: Neil Twigg <neil@nats.io>
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@derekcollison derekcollison merged commit 13f2738 into main Jul 31, 2024
5 checks passed
@derekcollison derekcollison deleted the neil/osync branch July 31, 2024 20:53
neilalexander added a commit that referenced this pull request Aug 6, 2024
Includes the following:

- #5690
- #5725
- #5729
- #5734
- #5735
- #5736
- #5743
- #5744
- #5751
- #5755
- #5754
- #5732
- #5750
- #5756

The following were reverted before this PR:
- #5602

Signed-off-by: Neil Twigg <neil@nats.io>
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.

2 participants