Skip to content

Prevent race deletion #136

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

Merged
merged 7 commits into from
May 23, 2024
Merged

Prevent race deletion #136

merged 7 commits into from
May 23, 2024

Conversation

tchaton
Copy link
Collaborator

@tchaton tchaton commented May 21, 2024

Before submitting
  • Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

What does this PR do?

There is a chance for a race condition when chunks are shared across ranks. This can happen when we enable deletion for the chunks.

In this PR, we estimate which rank is going to use the chunk last and disable deletion for all the other ranks to delete it.

Fixes # (issue).

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@tchaton tchaton requested a review from awaelchli as a code owner May 21, 2024 15:52
@tchaton tchaton merged commit 26bf6b2 into main May 23, 2024
30 of 32 checks passed
@tchaton tchaton deleted the add_partial_disabling_2 branch May 23, 2024 06:53
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.

1 participant