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

[8.2.0] Don't fetch empty digest on failure status in FetchBlobResponse #25277

Merged
merged 2 commits into from
Feb 14, 2025

Conversation

bazel-io
Copy link
Member

When the GrpcRemoteDownloader receives a FetchBlobResponse with an error status (instead of a connection level status error), it must fail and fall back to the HTTP downloader if configured instead of ignoring the status and attempting to fetch the (usually empty) digest from the cache. The previous behavior could result in errors being masked and resulting in an empty file being downloaded if the remote cache accepts empty Digest messages.

Closes #25244.

PiperOrigin-RevId: 725963696
Change-Id: I9f643b944b9fff9264c72f41485564ff1fab71d9

Commit e0cd2f2

When the `GrpcRemoteDownloader` receives a `FetchBlobResponse` with an error status (instead of a connection level status error), it must fail and fall back to the HTTP downloader if configured instead of ignoring the status and attempting to fetch the (usually empty) digest from the cache. The previous behavior could result in errors being masked and resulting in an empty file being downloaded if the remote cache accepts empty `Digest` messages.

Closes bazelbuild#25244.

PiperOrigin-RevId: 725963696
Change-Id: I9f643b944b9fff9264c72f41485564ff1fab71d9
@bazel-io bazel-io added team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Feb 13, 2025
@bazel-io bazel-io requested a review from a team as a code owner February 13, 2025 21:56
@iancha1992 iancha1992 enabled auto-merge (squash) February 14, 2025 03:26
@iancha1992 iancha1992 disabled auto-merge February 14, 2025 16:32
@iancha1992 iancha1992 added this pull request to the merge queue Feb 14, 2025
Merged via the queue into bazelbuild:release-8.2.0 with commit e73391e Feb 14, 2025
45 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Remote-Exec Issues and PRs for the Execution (Remote) team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants