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

etcdserver/api/v3rpc: remove duplicate gRPC logger set #9861

Merged
merged 2 commits into from
Jun 18, 2018

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Jun 18, 2018

Fix

=== RUN   TestEmbedEtcd
==================
WARNING: DATA RACE
Write at 0x000001df86d0 by goroutine 711:
  github.com/coreos/etcd/embed.(*Config).setupLogging.func1()
      /go/src/github.com/coreos/etcd/vendor/google.golang.org/grpc/grpclog/loggerv2.go:68 +0x16c
  sync.(*Once).Do()
      /usr/local/go/src/sync/once.go:44 +0xe1
  github.com/coreos/etcd/embed.(*Config).setupLogging()

in gRPC proxy tests.

Fix

=== RUN   TestEmbedEtcd
==================
WARNING: DATA RACE
Write at 0x000001df86d0 by goroutine 711:
  github.com/coreos/etcd/embed.(*Config).setupLogging.func1()
      /go/src/github.com/coreos/etcd/vendor/google.golang.org/grpc/grpclog/loggerv2.go:68 +0x16c
  sync.(*Once).Do()
      /usr/local/go/src/sync/once.go:44 +0xe1
  github.com/coreos/etcd/embed.(*Config).setupLogging()

in gRPC proxy tests.

Signed-off-by: Gyuho Lee <[email protected]>
@gyuho gyuho added the WIP label Jun 18, 2018
@gyuho gyuho force-pushed the race branch 2 times, most recently from a83189e to 9b260ca Compare June 18, 2018 17:49
@gyuho
Copy link
Contributor Author

gyuho commented Jun 18, 2018

Still gRPC proxy tests are failing. Will investigate separate.

@gyuho gyuho merged commit a205cfe into etcd-io:master Jun 18, 2018
@gyuho gyuho deleted the race branch June 18, 2018 18:39
@hexfusion
Copy link
Contributor

@gyuho could we get this backported? I am running into some race conditions working on discovery repo and this resolves that.

hexfusion pushed a commit to hexfusion/etcd that referenced this pull request Aug 18, 2018
etcdserver/api/v3rpc: remove duplicate gRPC logger set
gyuho added a commit that referenced this pull request Aug 20, 2018
etcdserver: cherry-pick #9861 to release-3.3
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.

2 participants