-
Notifications
You must be signed in to change notification settings - Fork 1k
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 incorrect synchronization in private server #739
Fix incorrect synchronization in private server #739
Conversation
Test Commit: 0ef8048
Output:
|
Test |
Test
|
@phprus Thanks a lot for testing! Now it's a different problem actually, so a least one I fixed. |
@pavelkumbrasev Do I need to create a new issue? |
It would be great. |
@pavelkumbrasev, |
Signed-off-by: pavelkumbrasev <[email protected]>
Signed-off-by: pavelkumbrasev <[email protected]>
0ef8048
to
a22919b
Compare
Signed-off-by: pavelkumbrasev <[email protected]>
Co-authored-by: Alex <[email protected]>
Signed-off-by: pavelkumbrasev [email protected]
Description
Patch fixes incorrect happens-before between worker thread and finalize.
There was data race between commit_wait on worker thread and thread that calls finalize -> start_shutdown for worker thread.
Because there was no happens-before shutdowning thread reads incorrect private_worker data and that leads to hang on join() of private_worker.
Current patch fixes test_global_control for #771 issue.
Type of change
Tests
Documentation
Breaks backward compatibility
Notify the following users
@alexey-katranov @phprus @anton-potapov
Other information