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 in oracle.go #3417

Merged
merged 1 commit into from
May 16, 2019
Merged

Fix race condition in oracle.go #3417

merged 1 commit into from
May 16, 2019

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented May 14, 2019

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 Reviewable

@martinmr martinmr requested review from manishrjain and a team as code owners May 14, 2019 23:09
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.
@martinmr martinmr mentioned this pull request May 14, 2019
8 tasks
Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link

@gitlw gitlw left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@mangalaman93
Copy link
Contributor

Do not observe any race condition in zero anymore. Ran flock overnight.

@mangalaman93
Copy link
Contributor

Fixes zero data races in #3411

@martinmr
Copy link
Contributor Author

Thanks for checking @mangalaman93

@martinmr martinmr merged commit 50a73d5 into master May 16, 2019
@martinmr martinmr deleted the martinmr/fix-zero-race branch May 16, 2019 17:54
dna2github pushed a commit to dna2fork/dgraph that referenced this pull request Jul 19, 2019
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants