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

Making the stream writer APIs goroutine-safe #959

Merged
merged 4 commits into from
Aug 2, 2019

Conversation

gitlw
Copy link

@gitlw gitlw commented Aug 1, 2019

Adding locks around the StreamWriter APIs so that multiple go routines can call the APIs simultaneously without race conditions.
I've verified this change in bulk loader, which used to have RACE condition warnings reported by the race detector. With this change, those warnings are no longer showing up.


This change is Reviewable

@gitlw gitlw requested review from ashish-goswami, manishrjain and a team as code owners August 1, 2019 22:07
stream_writer.go Outdated Show resolved Hide resolved
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: Looks great.

Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @gitlw)

@gitlw gitlw merged commit f59246c into master Aug 2, 2019
@gitlw gitlw deleted the gitlw/concurrent_stream_writer branch August 2, 2019 17:43
jarifibrahim pushed a commit that referenced this pull request Mar 12, 2020
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