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

Fix sector scrub #2634

Merged
merged 2 commits into from
Mar 22, 2024
Merged

Fix sector scrub #2634

merged 2 commits into from
Mar 22, 2024

Conversation

nazar-pc
Copy link
Member

@nazar-pc nazar-pc commented Mar 22, 2024

First of all this PR implements --dry-run option for scrubbing, which was both useful for debugging for me and could be useful in some other scenarios for farmers.

Second, due to incorrect assumptions of sector layout scrubbing wasn't working correctly and due to #2633 was silently expiring all sectors, forcing replotting. Reading sector as a series of opaque bytes rather than some specific contents fixes that and makes it more resilient to potential future changes.

Tested with both correctly plotted farm and corrupted one, works as expected for me.

Code contributor checklist:

@nazar-pc nazar-pc added this pull request to the merge queue Mar 22, 2024
Merged via the queue into main with commit 63f476a Mar 22, 2024
9 checks passed
@nazar-pc nazar-pc deleted the fix-sector-scrub branch March 22, 2024 14:02
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