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

Improve error handling #2639

Merged
merged 3 commits into from Mar 26, 2024
Merged

Improve error handling #2639

merged 3 commits into from Mar 26, 2024

Conversation

nazar-pc
Copy link
Member

This PR addresses a few UX pain points described in https://forum.subspace.network/t/farm-stops-if-drive-drops-out/3051?u=nazar-pc and https://forum.subspace.network/t/can-farmer-still-continue-if-there-is-a-broken-plot-disk/2906?u=nazar-pc before that (not counting many other cases).

First of all, in case we had a single broken/missing (for example after scrub) element in piece cache, piece cache was stopping reading further pieces, which may still be there, forcing larger than necessary piece cache sync on restart. We change that to tolerate a series of a few broken/missing pieces instead.

Second, completely missing/broken disk can cause farmer to print an infinite list of error messages, this change prevents it by having a threshold after which non-fatal errors become fatal.

Third, after crash of one farm farmer will no longer exit by default if there are other farms working successfully, this allows user to continue plotting/farming until they have a chance to check what is going on with farmer. Previous default behavior can be restored with --exit-on-farm-error.

Code contributor checklist:

@nazar-pc nazar-pc added this pull request to the merge queue Mar 26, 2024
Merged via the queue into main with commit 91cf708 Mar 26, 2024
9 checks passed
@nazar-pc nazar-pc deleted the improve-error-handling branch March 26, 2024 11:36
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.

None yet

2 participants