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 race condition when cleaning up. #143

Merged
merged 21 commits into from
Jul 10, 2023
Merged

Fix race condition when cleaning up. #143

merged 21 commits into from
Jul 10, 2023

Conversation

jovany-wang
Copy link
Collaborator

@jovany-wang jovany-wang commented Jul 6, 2023

In this PR, we refactor the cleanup file to solve the thread safe issue and repeated initializing issue.

Replace #142 and close #130

Signed-off-by: Qing Wang <kingchin1218@gmail.com>
Signed-off-by: Qing Wang <kingchin1218@gmail.com>
Signed-off-by: Qing Wang <kingchin1218@gmail.com>
Signed-off-by: Qing Wang <kingchin1218@gmail.com>
Signed-off-by: Qing Wang <kingchin1218@gmail.com>
@jovany-wang jovany-wang requested review from fengsp and a team July 7, 2023 07:08
@jovany-wang jovany-wang added the bug Something isn't working label Jul 7, 2023
fed/cleanup.py Outdated Show resolved Hide resolved
fed/cleanup.py Outdated Show resolved Hide resolved
Signed-off-by: Qing Wang <kingchin1218@gmail.com>
Copy link
Member

@zhouaihui zhouaihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@fengsp fengsp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

fed/cleanup.py Outdated Show resolved Hide resolved
Signed-off-by: Qing Wang <kingchin1218@gmail.com>
Signed-off-by: Qing Wang <kingchin1218@gmail.com>
Signed-off-by: Qing Wang <kingchin1218@gmail.com>
@jovany-wang jovany-wang merged commit 4382641 into main Jul 10, 2023
5 checks passed
@jovany-wang jovany-wang deleted the fix-2 branch July 10, 2023 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fed cleanup logic is not thread safe
3 participants