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

Delete the node dir when wiping all #1630

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

tillrohrmann
Copy link
Contributor

WipeMode::All will now delete the whole node base dir to also
remove a cluster marker file.

This fixes #1629.

This PR is based on #1628.

@AhmedSoliman
Copy link
Contributor

I wonder if we should go the opposite way and completely remove the wipe command. It might be better to ask users to remove (or rename) the data directory instead of providing this as a feature. What do you think?

@tillrohrmann
Copy link
Contributor Author

I wonder if we should go the opposite way and completely remove the wipe command. It might be better to ask users to remove (or rename) the data directory instead of providing this as a feature. What do you think?

It is certainly a foot gun and trains people in bad habits. Maybe I only fix it then in the release-1.0 branch where we still have the wipe command and remove the wipe command in main?

@AhmedSoliman
Copy link
Contributor

@tillrohrmann up to you.

@tillrohrmann
Copy link
Contributor Author

I would merge the PR and open an issue to remove the wipe command or at least hide it for the next release (1.1).

WipeMode::All will now delete the whole node base dir to also
remove a cluster marker file.

This fixes restatedev#1629.
@tillrohrmann
Copy link
Contributor Author

The respective issue for removing/hiding the wipe command is #1650.

@tillrohrmann tillrohrmann merged commit 5ee9602 into restatedev:main Jun 20, 2024
4 checks passed
@tillrohrmann tillrohrmann deleted the issues/1629 branch June 20, 2024 12:21
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.

Wipe::All does not remove cluster marker
2 participants