Skip to content

Restore retries for stores to remote REAPI byte stores (Cherry-pick of #19737)#19798

Merged
huonw merged 1 commit into2.18.xfrom
cherry-pick-19737-to-2.18.x
Sep 7, 2023
Merged

Restore retries for stores to remote REAPI byte stores (Cherry-pick of #19737)#19798
huonw merged 1 commit into2.18.xfrom
cherry-pick-19737-to-2.18.x

Conversation

@WorkerPants
Copy link
Member

This fixes #19732 by restoring the retries when storing hits retryable server failures from the REAPI remote cache server, which were lost in the #19050 refactoring.

This also explicitly tests for retries, refactoring StubCAS to generalise read_request_count to expose the counts of more requests than just reads, and also consistently return a Status::internal(...) for the simulated errors.

I think #19050 fortunately landed just after 2.17 was cut, so this regression only affects the 2.18 pre-releases.

This fixes #19732 by restoring the retries when storing hits retryable
server failures from the REAPI remote cache server, which were lost in
the #19050 refactoring.

This also explicitly tests for retries, refactoring `StubCAS` to
generalise `read_request_count` to expose the counts of more requests
than just reads, and also consistently return a `Status::internal(...)`
for the simulated errors.

I think #19050 fortunately landed just after 2.17 was cut, so this
regression only affects the 2.18 pre-releases.
@WorkerPants WorkerPants added this to the 2.18.x milestone Sep 7, 2023
@WorkerPants WorkerPants added the category:internal CI, fixes for not-yet-released features, etc. label Sep 7, 2023
@WorkerPants WorkerPants requested review from huonw and stuhood September 7, 2023 21:47
@huonw huonw merged commit dab1027 into 2.18.x Sep 7, 2023
@huonw huonw deleted the cherry-pick-19737-to-2.18.x branch September 7, 2023 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:internal CI, fixes for not-yet-released features, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants