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 during WriteStop #560

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hangxie
Copy link
Contributor

@hangxie hangxie commented Sep 17, 2023

This is for #559, tested with my code.

This may not be the best fix, I didn't test performance penalty from this but since most Write are slow due to IO, I think we can live with it.

@hangxie
Copy link
Contributor Author

hangxie commented Sep 11, 2024

@xitongsys would you please take a look at this PR? Two fixes included are pretty critical to address race conditions.

Just in case you have concern on performance issue in the description - since the WriteStop will be called only whenever ... write stops, so I don't think adding locking mechanism around codes will be a significant performance problem.

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