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

fix: remove drop-bomb, move empty folder removal to post_process #519

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

wolfv
Copy link
Contributor

@wolfv wolfv commented Feb 6, 2024

We observed a race condition when removing empty folders - during the execution of a transaction it can happen that one package gets unlinked and cleans up empty folders after itself, while another one is already installing new files into the folders. This is a race condition due to the way we parellely link all the files.

In order to fix this issue this PR moves the cleaning out of empty folders until after we're done unlinking and linking new files into the prefix and then does a (synchronous) cleaning of all empty folders in the prefix (that are not explicitly mentioned as empty directories).

@wolfv wolfv force-pushed the post-process-empty-folders branch from 80f811d to 046d34b Compare February 9, 2024 15:02
@wolfv wolfv force-pushed the post-process-empty-folders branch from 046d34b to ee0a61e Compare February 12, 2024 15:04
@baszalmstra baszalmstra merged commit da5b8b9 into conda:main Feb 12, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants