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

[7.1.0] Fix stale trash dir not cleaned up on worker creation #21511

Closed
wants to merge 1 commit into from
Closed

Conversation

keertk
Copy link
Member

@keertk keertk commented Feb 27, 2024

The bug in Blaze is that ${output_base}/blaze-workers/_moved_trash_dir/ doesn't get wiped between blaze restarts. The directory to move to for asynchronous deletion is an incrementing AtomicInteger but after a restart it will be zero again. If there were previous directories there, we might get an error trying to replace a non-empty directory while renaming.

Commit e482e8b

RELNOTES:none
PiperOrigin-RevId: 610323627
Change-Id: I2d397fbd4590fa9f83273ac11d92d591bf9348b8

The bug in Blaze is that ${output_base}/blaze-workers/_moved_trash_dir/ doesn't
get wiped between blaze restarts. The directory to move to for asynchronous
deletion is an incrementing AtomicInteger but after a restart it will be zero
again. If there were previous directories there, we might get an error trying
to replace a non-empty directory while renaming.

RELNOTES:none
PiperOrigin-RevId: 610323627
Change-Id: I2d397fbd4590fa9f83273ac11d92d591bf9348b8
@keertk keertk requested a review from a team as a code owner February 27, 2024 18:51
@github-actions github-actions bot added awaiting-review PR is awaiting review from an assigned reviewer team-Local-Exec Issues and PRs for the Execution (Local) team labels Feb 27, 2024
@keertk
Copy link
Member Author

keertk commented Feb 27, 2024

Closing this in favour of #21510 (just noticed that one :))

@keertk keertk closed this Feb 27, 2024
auto-merge was automatically disabled February 27, 2024 18:55

Pull request was closed

@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Local-Exec Issues and PRs for the Execution (Local) team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants