Skip to content

[9.1.0] Use a virtual thread executor for the disk cache (https://github.com/bazelbuild/bazel/pull/28430)#28464

Merged
iancha1992 merged 1 commit intobazelbuild:release-9.1.0from
bazel-io:cp28430-9.1.0
Jan 29, 2026
Merged

[9.1.0] Use a virtual thread executor for the disk cache (https://github.com/bazelbuild/bazel/pull/28430)#28464
iancha1992 merged 1 commit intobazelbuild:release-9.1.0from
bazel-io:cp28430-9.1.0

Conversation

@bazel-io
Copy link
Copy Markdown
Member

Individual disk cache operations are I/O-bound and not related to --jobs or remotely executing actions in any direct way, so it doesn't make sense to reuse the remote ExecutorService for them.

Closes #28430.

PiperOrigin-RevId: 862134357
Change-Id: I8e6c43649443179b9d73735a206fad04591fad2a

Commit 81a74d2

Individual disk cache operations are I/O-bound and not related to `--jobs` or remotely executing actions in any direct way, so it doesn't make sense to reuse the remote `ExecutorService` for them.

Closes bazelbuild#28430.

PiperOrigin-RevId: 862134357
Change-Id: I8e6c43649443179b9d73735a206fad04591fad2a
@bazel-io bazel-io requested a review from a team as a code owner January 28, 2026 10:36
@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 10:36
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

This pull request refactors the DiskCacheClient to use its own virtual thread-based executor. This is a great improvement, as disk cache operations are I/O-bound and well-suited for virtual threads. This change correctly decouples the disk cache's threading model from the remote execution executor, simplifying the code paths that construct the DiskCacheClient. The addition of a close() method to DiskCacheClient and ensuring its cleanup in tests and production code is correctly handled. The changes are clean and improve both architecture and performance. I have not found any issues.

@iancha1992 iancha1992 enabled auto-merge January 28, 2026 19:11
@iancha1992 iancha1992 added this pull request to the merge queue Jan 29, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 29, 2026
@iancha1992 iancha1992 added this pull request to the merge queue Jan 29, 2026
Merged via the queue into bazelbuild:release-9.1.0 with commit 7480998 Jan 29, 2026
46 checks passed
@github-actions github-actions Bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Jan 29, 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