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

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

Merged
merged 1 commit into from
Sep 7, 2023

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 stuhood and huonw 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