-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 in oracle.go #3417
Conversation
Currently, we pass a pointer to a delta to a channel and then set the group checksums. This results in a race condition because the pointer is sent to multiple channels. This change changes the channel to send a delta instead of a pointer. This should fix this particular race condition.
9096145
to
a9c8642
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1.
Reviewable status: complete! all files reviewed, all discussions resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved
Do not observe any race condition in zero anymore. Ran flock overnight. |
Fixes zero data races in #3411 |
Thanks for checking @mangalaman93 |
Currently, we pass a pointer to a delta to a channel and then set the group checksums. This results in a race condition because the pointer is sent to multiple channels. This change changes the channel to send a delta instead of a pointer. This should fix this particular race condition.
Currently, we pass a pointer to a delta to a channel and then set the
group checksums. This results in a race condition because the pointer
is sent to multiple channels. This change changes the channel to send
a delta instead of a pointer. This should fix this particular race
condition.
This change is