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

Clustering - Write to tempfile first when getting full file #812

Merged
merged 5 commits into from
Oct 28, 2024

Conversation

viktorerlingsson
Copy link
Member

@viktorerlingsson viktorerlingsson commented Oct 18, 2024

WHAT is this pull request doing?

Writes full file to a tempfile first and then renames it to replace the old file when getting full file on followers. This ensures that followers always has a complete file ready.

The Clustering::AddAction is only ever used by replace_file as far as I can tell, meaning we shouldn't have to look for existing files.

Fixes #806

HOW can this pull request be tested?

Run spec.

@viktorerlingsson viktorerlingsson requested a review from a team as a code owner October 18, 2024 08:03
@carlhoerberg carlhoerberg added this to the v2.0.0-rc.5 milestone Oct 27, 2024
@viktorerlingsson viktorerlingsson merged commit 2d7f1e3 into main Oct 28, 2024
24 of 25 checks passed
@viktorerlingsson viktorerlingsson deleted the clustering-write-to-tempfile branch October 28, 2024 13:42
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.

Clustering - add action for renaming replicated files
3 participants