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

Bug 1844569 - RLB: Gracefully handle uploader thread start failure #2545

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

badboy
Copy link
Member

@badboy badboy commented Jul 24, 2023

There might be cases where we can't properly start the thread, e.g. when out of memory (as it seems to happen on low-end 32bit versions of Firefox). We now avoid the crash.
The data should be safely stored on disk and on the next upload it will try again (and hopefully succeed).


Still needs some testing. Not sure yet how to inject a thread start failure.

@badboy badboy changed the title RLB: Gracefully handle uploader thread start failure Bug 1844569 - RLB: Gracefully handle uploader thread start failure Jul 24, 2023
@badboy badboy force-pushed the gracefully-handle-upload-thread-start-failure branch from 337609c to 7a08293 Compare July 26, 2023 09:48
@badboy
Copy link
Member Author

badboy commented Jul 26, 2023

I'm still undecided whether I want to land this example test, but at least the RLB code itself is working.

@badboy badboy marked this pull request as ready for review July 26, 2023 09:48
@badboy badboy requested a review from a team as a code owner July 26, 2023 09:48
@badboy badboy requested review from rosahbruno and travis79 and removed request for a team July 26, 2023 09:48
Copy link
Member

@travis79 travis79 left a comment

Choose a reason for hiding this comment

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

"THIS IS HIGHLY UNSAFE", always a good comment 💯. Glad it's just an example for testing purposes. This looks good to me.

@badboy badboy force-pushed the gracefully-handle-upload-thread-start-failure branch 4 times, most recently from b82b670 to 28e6fb2 Compare July 26, 2023 11:27
There might be cases where we can't properly start the thread, e.g. when
out of memory (as it seems to happen on low-end 32bit versions of Firefox).
We now avoid the crash.
The data should be safely stored on disk and on the next upload it will
try again (and hopefully succeed).
@badboy badboy force-pushed the gracefully-handle-upload-thread-start-failure branch from 28e6fb2 to 56ca432 Compare July 26, 2023 15:37
@badboy badboy force-pushed the gracefully-handle-upload-thread-start-failure branch from 56ca432 to b675ee4 Compare July 26, 2023 15:39
@badboy badboy merged commit 0d7d7ab into main Jul 26, 2023
@badboy badboy deleted the gracefully-handle-upload-thread-start-failure branch July 26, 2023 15:51
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