-
Notifications
You must be signed in to change notification settings - Fork 53
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: Change the WriteSyncer to use lock when piping #1608
fix: Change the WriteSyncer to use lock when piping #1608
Conversation
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.
LGTM, although I cant really review other than by reading the zap-docs, which I assume you have already done :) Nice find and fix :)
Thank Andy. Yes I tested it with Islam's PR and it solves the issue. Found the fix when I landed on this: uber-go/zap#106 |
Codecov ReportPatch coverage:
@@ Coverage Diff @@
## develop #1608 +/- ##
===========================================
- Coverage 73.62% 73.59% -0.03%
===========================================
Files 188 188
Lines 19608 19608
===========================================
- Hits 14435 14430 -5
- Misses 4108 4112 +4
- Partials 1065 1066 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
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.
LGTM
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.
LGTM
## Relevant issue(s) Resolves sourcenetwork#1607 ## Description This PR wraps the pipe WriteSyncer with a Lock so that is can be used concurrently.
Relevant issue(s)
Resolves #1607
Description
This PR wraps the pipe WriteSyncer with a Lock so that is can be used concurrently.
Tasks
How has this been tested?
make test
Specify the platform(s) on which this was tested: