| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Codecov ReportAll modified and coverable lines are covered by tests ✅ Additional details and impacted files @@ Coverage Diff @@
## main #14427 +/- ##
=======================================
Coverage 93.58% 93.59%
=======================================
Files 2313 2313
Lines 206951 206983 +32
=======================================
+ Hits 193680 193716 +36
+ Misses 13271 13267 -4 ☔ View full report in Codecov by Sentry. |
Sorry, something went wrong.
`storage::Client::ReadObject()` resumes a download that gets interrupted (controlled by policy). On the first resume attempt, the library does not back off (sleep), becuase there is no reason to believe the problem is load related. If the first resume fails, the library backsoff before each attempt, as the problem might be load related after this point. The library was *also* backing off before issuing the first `Read()` on the newly created source of data. That effectively doubles the backoff time, and leaves the resumed connection idle for (potentially) a long time when there are multiple resume attempts needed.
| HttpResponse{100, "", {}}})); | ||
| EXPECT_CALL(*source, Read).WillOnce(Return(TransientError())); | ||
| // No backoffs to resume after a (partially) successful request: | ||
| // EXPECT_CALL(backoff, Call).Times(1); |
There was a problem hiding this comment.
remove?
Sorry, something went wrong.
There was a problem hiding this comment.
Done.
Sorry, something went wrong.
| @@ -222,21 +224,22 @@ TEST(RetryObjectReadSourceTest, BackoffPolicyResetOnSuccess) { | |||
|
|
|||
There was a problem hiding this comment.
s/closed/cloned/ on L217
Sorry, something went wrong.
There was a problem hiding this comment.
Done.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
storage::Client::ReadObject() resumes a download that gets
interrupted (controlled by policy). Before making a resume attempt, the
library backsoff in case the problem is load related. The library was
also backing off before issuing the first Read() on the newly
created source of data. That effectively doubles the backoff time.
Fixes #14424
This change is