Skip to content

[9.0.1] Fix disk cache failures on concurrent read-write access on Windows (h…#28552

Merged
iancha1992 merged 3 commits intobazelbuild:release-9.0.1from
iancha1992:cp28458
Feb 9, 2026
Merged

[9.0.1] Fix disk cache failures on concurrent read-write access on Windows (h…#28552
iancha1992 merged 3 commits intobazelbuild:release-9.0.1from
iancha1992:cp28458

Conversation

@iancha1992
Copy link
Member

…ttps://github.com//pull/28417)

This applies the fix made to the download cache in 753dc97 to the disk cache.

Work towards #28408

Closes #28417.

PiperOrigin-RevId: 864861790
Change-Id: I6850fc27f3336f44f8d366daac63e4822cb94f73

Commit 73c8da8

…azelbuild#28417)

This applies the fix made to the download cache in 753dc97 to the disk cache.

Work towards bazelbuild#28408

Closes bazelbuild#28417.

PiperOrigin-RevId: 864861790
Change-Id: I6850fc27f3336f44f8d366daac63e4822cb94f73
@iancha1992 iancha1992 requested a review from coeuvre February 5, 2026 20:08
@iancha1992 iancha1992 requested a review from a team as a code owner February 5, 2026 20:08
@iancha1992 iancha1992 added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Feb 5, 2026
@iancha1992 iancha1992 enabled auto-merge February 5, 2026 20:09
Copy link

@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 effectively addresses a concurrency issue on Windows related to disk cache access by refactoring the fix into a reusable utility within FileSystemUtils. This new utility is then applied to both the DownloadCache and DiskCacheClient, ensuring consistent behavior. The accompanying tests are thorough, including specific unit tests for the new utility and a concurrency test to validate the fix under race conditions. I've identified a minor logical issue in the new concurrency test that could be improved for efficiency and faster feedback on failures.

@iancha1992 iancha1992 requested a review from tjgq February 5, 2026 23:40
@iancha1992
Copy link
Member Author

iancha1992 commented Feb 5, 2026

@tjgq Could you please suggest a fix for the errors? Looks like #28529 is working. And I've applied the same fix.

@iancha1992 iancha1992 added this pull request to the merge queue Feb 9, 2026
Merged via the queue into bazelbuild:release-9.0.1 with commit 833b237 Feb 9, 2026
45 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. 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