[9.1.0] Fix disk cache failures on concurrent read-write access on Windows (h…#28555
Merged
iancha1992 merged 2 commits intobazelbuild:release-9.1.0from Feb 25, 2026
Merged
[9.1.0] Fix disk cache failures on concurrent read-write access on Windows (h…#28555iancha1992 merged 2 commits intobazelbuild:release-9.1.0from
iancha1992 merged 2 commits intobazelbuild:release-9.1.0from
Conversation
…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
There was a problem hiding this comment.
Code Review
This pull request effectively addresses a concurrency issue on Windows related to disk cache access. The core of the change is the introduction of the FileSystemUtils.renameToleratingConcurrentCreation method, which correctly handles FileAccessException during file renames in a concurrent environment. This logic has been cleanly refactored from DownloadCache and applied to DiskCacheClient, resolving the bug. The changes are well-supported by new, thorough unit tests and a concurrency test that specifically targets the race condition. The overall implementation is robust and improves code maintainability by centralizing the fix in a reusable utility.
meteorcloudy
approved these changes
Feb 25, 2026
Merged
via the queue into
bazelbuild:release-9.1.0
with commit Feb 25, 2026
e816764
45 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…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