Skip to content

[8.6.0] Don't repeatedly request QueryWriteStatus if the server doesn't support it (https://github.com/bazelbuild/bazel/pull/28235)#28474

Merged
iancha1992 merged 1 commit intobazelbuild:release-8.6.0from
bazel-io:cp28235-8.6.0
Feb 6, 2026
Merged

Conversation

@bazel-io
Copy link
Copy Markdown
Member

After the first time a QueryWriteStatus call fails with UNIMPLEMENTED, stop calling the method to avoid an additional roundtrip on every retry.

Closes #28235.

PiperOrigin-RevId: 861621112
Change-Id: Iedf106f771fe3105c4c9e8e7b44d14907bd4e835

Commit fb62559

…rt it (bazelbuild#28235)

After the first time a `QueryWriteStatus` call fails with `UNIMPLEMENTED`, stop calling the method to avoid an additional roundtrip on every retry.

Closes bazelbuild#28235.

PiperOrigin-RevId: 861621112
Change-Id: Iedf106f771fe3105c4c9e8e7b44d14907bd4e835
@bazel-io bazel-io requested a review from a team as a code owner January 28, 2026 21:53
@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 Jan 28, 2026
@bazel-io bazel-io requested a review from coeuvre January 28, 2026 21:53
@iancha1992 iancha1992 enabled auto-merge January 28, 2026 21:53
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The changes effectively address the issue of repeatedly calling QueryWriteStatus when the server does not support it. The introduction of an AtomicBoolean flag and the necessary refactoring of AsyncUpload to a non-static inner class are appropriate and correctly implemented. The logic ensures that once an UNIMPLEMENTED status is received, subsequent calls to query() will bypass the QueryWriteStatus request, optimizing network roundtrips. This is a solid improvement to the ByteStreamUploader.

@iancha1992 iancha1992 added this pull request to the merge queue Feb 5, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 5, 2026
@iancha1992 iancha1992 added this pull request to the merge queue Feb 5, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 5, 2026
@iancha1992 iancha1992 enabled auto-merge February 5, 2026 21:43
@iancha1992 iancha1992 disabled auto-merge February 5, 2026 21:43
@iancha1992 iancha1992 enabled auto-merge February 5, 2026 21:43
@iancha1992 iancha1992 disabled auto-merge February 6, 2026 18:56
@iancha1992 iancha1992 added this pull request to the merge queue Feb 6, 2026
Merged via the queue into bazelbuild:release-8.6.0 with commit f46e88e Feb 6, 2026
47 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Feb 6, 2026
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