-
Notifications
You must be signed in to change notification settings - Fork 11
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
Check for pending uploads outside of lock #628
Conversation
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
@@ Coverage Diff @@
## main #628 +/- ##
==========================================
- Coverage 98.13% 98.12% -0.02%
==========================================
Files 438 438
Lines 36565 36570 +5
==========================================
- Hits 35884 35883 -1
- Misses 681 687 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
@@ Coverage Diff @@
## main #628 +/- ##
==========================================
- Coverage 98.13% 98.12% -0.02%
==========================================
Files 438 438
Lines 36565 36570 +5
==========================================
- Hits 35884 35883 -1
- Misses 681 687 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #628 +/- ##
==========================================
- Coverage 98.13% 98.12% -0.02%
==========================================
Files 438 438
Lines 36565 36570 +5
==========================================
- Hits 35884 35883 -1
- Misses 681 687 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAttention: Patch coverage is
Changes have been made to critical files, which contain lines commonly executed in production. Learn more ✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## main #628 +/- ##
==========================================
- Coverage 98.15% 98.15% -0.01%
==========================================
Files 473 473
Lines 37770 37775 +5
==========================================
+ Hits 37075 37078 +3
- Misses 695 697 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
According to traces, it happens quite frequently that an `Upload` task early-returns right after acquiring its upload lock because it does not have any pending tasks. This moves this check outside of the lock to optimize one case. However it can still happen that concurrent `Upload` tasks "steal" each others pending uploads, so another check is still required within the lock.
8a1de7c
to
d5a4cd8
Compare
According to traces, it happens quite frequently that an
Upload
task early-returns right after acquiring its upload lock because it does not have any pending tasks.This moves this check outside of the lock to optimize one case. However it can still happen that concurrent
Upload
tasks "steal" each others pending uploads, so another check is still required within the lock.