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 alternative retry method for async storage #797

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Conversation

benthecarman
Copy link
Collaborator

@benthecarman benthecarman commented Oct 15, 2023

@TonyGiorgio and some other people have been reporting some issues with storage getting stuck. Not entirely sure what the issue is but this could be a fix. Changes the storage retries to be done by listing all the pending updates and persisting them in a loop rather than continually retrying on an individual update. This also lets us persist locally for retries since we are persisting the current monitor for retries, instead of the one that failed, so we don't have to worry about a race condition.

@benthecarman benthecarman force-pushed the different-retry branch 3 times, most recently from 659c5de to 4fb675b Compare October 15, 2023 23:50
@TonyGiorgio
Copy link
Contributor

Cool, thanks. Will try to reproduce the issue locally and then see if this fixes it. It wasn't something I could reliably reproduce, even turning the browser network speed to 3g.

Copy link
Contributor

@TonyGiorgio TonyGiorgio left a comment

Choose a reason for hiding this comment

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

Code looks good, logic makes sense, can't test this for awhile so if you've done so then lgtm

@benthecarman benthecarman merged commit 46afa7e into master Oct 24, 2023
9 checks passed
@benthecarman benthecarman deleted the different-retry branch October 24, 2023 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants