Skip to content

Fix BackgroundWorker exiting when OperationCanceledException is not from shutdown request - #3284

Merged
jamescrosswell merged 4 commits into
getsentry:mainfrom
phillipcaofph:backgroundworking-http-timeout-fix
Apr 24, 2024
Merged

jamescrosswell merged 4 commits into
getsentry:mainfrom
phillipcaofph:backgroundworking-http-timeout-fix

Conversation

@phillipcaofph

@phillipcaofph phillipcaofph commented Apr 11, 2024

Copy link
Copy Markdown
Contributor

Fixes #3274

@codecov

codecov Bot commented Apr 11, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.95%. Comparing base (495e742) to head (44f1721).
Report is 102 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3284      +/-   ##
==========================================
+ Coverage   75.73%   76.95%   +1.22%     
==========================================
  Files         357      371      +14     
  Lines       13466    13898     +432     
  Branches     2671     2754      +83     
==========================================
+ Hits        10198    10695     +497     
+ Misses       2593     2503      -90     
- Partials      675      700      +25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bitsandfoxes

bitsandfoxes commented Apr 12, 2024

Copy link
Copy Markdown
Contributor

Hey @phillipcaofph, thanks for contributing! The change absolutely makes sense and I'd love to merge this but we first need to figure out the testing situation as it touches some very internal bits. Thanks for your patience.

Comment thread src/Sentry/Internal/BackgroundWorker.cs
@jamescrosswell jamescrosswell self-assigned this Apr 19, 2024
@jamescrosswell
jamescrosswell merged commit 40f108c into getsentry:main Apr 24, 2024
@phillipcaofph
phillipcaofph deleted the backgroundworking-http-timeout-fix branch April 25, 2024 03:09
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.

Background worker unexpectedly shutdown when sentry server is down, does not recover

3 participants