-
Notifications
You must be signed in to change notification settings - Fork 35
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
Fixes for data races in logs #1125
Fixes for data races in logs #1125
Conversation
log.Fields()
015e3fc
to
0170f05
Compare
35041ec
to
3fdb382
Compare
@@ -38,7 +38,7 @@ import ( | |||
func TestCreateEndpointDuringRequest(t *testing.T) { | |||
t.Cleanup(func() { goleak.VerifyNone(t) }) | |||
|
|||
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10) | |||
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5*10) |
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.
Why are we suddenly 10x-ing all of the timeouts? What are we doing that is bloating the latency by 10x?
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.
It seems, that enabling full logs in tests running with race flag, increases time for tests. That's not something i'm going to actually push to sdk code, some changes only have been made for testing, so i'm converted this PR to draft, until it's ready.
eae57ad
to
eb9653e
Compare
log.Fields()
Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com>
Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com>
dfe7b40
to
eaceefe
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.
LGTM. Could you remove all debug changes?
eaceefe
to
4426378
Compare
Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com>
4426378
to
37803f5
Compare
@denis-tingaikin removed all unrelated changes from PR |
…k@main PR link: networkservicemesh/sdk#1125 Commit: 0a90a22 Author: Авраменко Михаил Date: 2021-11-02 12:54:45 +0700 Message: - Fixes for data races in logs (#1125) * added logging infrustructure in tests to catch races Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * added set log options to registry chains Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * changed context in heal to prevent data races Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1125 Commit: 0a90a22 Author: Авраменко Михаил Date: 2021-11-02 12:54:45 +0700 Message: - Fixes for data races in logs (#1125) * added logging infrustructure in tests to catch races Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * added set log options to registry chains Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * changed context in heal to prevent data races Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1125 Commit: 0a90a22 Author: Авраменко Михаил Date: 2021-11-02 12:54:45 +0700 Message: - Fixes for data races in logs (#1125) * added logging infrustructure in tests to catch races Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * added set log options to registry chains Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * changed context in heal to prevent data races Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1125 Commit: 0a90a22 Author: Авраменко Михаил Date: 2021-11-02 12:54:45 +0700 Message: - Fixes for data races in logs (#1125) * added logging infrustructure in tests to catch races Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * added set log options to registry chains Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * changed context in heal to prevent data races Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1125 Commit: 0a90a22 Author: Авраменко Михаил Date: 2021-11-02 12:54:45 +0700 Message: - Fixes for data races in logs (#1125) * added logging infrustructure in tests to catch races Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * added set log options to registry chains Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * changed context in heal to prevent data races Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1125 Commit: 0a90a22 Author: Авраменко Михаил Date: 2021-11-02 12:54:45 +0700 Message: - Fixes for data races in logs (#1125) * added logging infrustructure in tests to catch races Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * added set log options to registry chains Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * changed context in heal to prevent data races Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1125 Commit: 0a90a22 Author: Авраменко Михаил Date: 2021-11-02 12:54:45 +0700 Message: - Fixes for data races in logs (#1125) * added logging infrustructure in tests to catch races Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * added set log options to registry chains Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * changed context in heal to prevent data races Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1125 Commit: 0a90a22 Author: Авраменко Михаил Date: 2021-11-02 12:54:45 +0700 Message: - Fixes for data races in logs (#1125) * added logging infrustructure in tests to catch races Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * added set log options to registry chains Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com> * changed context in heal to prevent data races Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Signed-off-by: Mikhail Avramenko avramenkomihail15@gmail.com
Description
Refactored usage of log fields to prevent data races
Issue link
fixes networkservicemesh/cmd-forwarder-vpp#372
How Has This Been Tested?
Types of changes