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

transport: data race between http2Client.operateHeaders() and Stream.BytesReceived() #1316

Closed
heyitsanthony opened this issue Jun 16, 2017 · 1 comment · Fixed by #1318
Closed
Assignees

Comments

@heyitsanthony
Copy link
Contributor

What version of gRPC are you using?

1.4.1

What version of Go are you using (go version)?

1.8.3

What operating system (Linux, Windows, …) and version?

Ubuntu Linux 16.10

What did you do?

Ran the etcd proxy tests:
PASSES=grpcproxy ./test

What did you expect to see?

No data races from grpc.

What did you see instead?

WARNING: DATA RACE
Write at 0x00c425b38ff1 by goroutine 2016:
  google.golang.org/grpc/transport.(*http2Client).operateHeaders()
      /home/jenkins/workspace/etcd-proxy/gopath/src/google.golang.org/grpc/transport/http2_client.go:1027 +0x93
  google.golang.org/grpc/transport.(*http2Client).reader()
      /home/jenkins/workspace/etcd-proxy/gopath/src/google.golang.org/grpc/transport/http2_client.go:1142 +0x8f8

Previous read at 0x00c425b38ff1 by goroutine 795:
  google.golang.org/grpc/transport.(*Stream).BytesReceived()
      /home/jenkins/workspace/etcd-proxy/gopath/src/google.golang.org/grpc/transport/transport.go:377 +0x91
  google.golang.org/grpc.(*clientStream).finish()
      /home/jenkins/workspace/etcd-proxy/gopath/src/google.golang.org/grpc/stream.go:492 +0x8d1
  google.golang.org/grpc.newClientStream.func3()
      /home/jenkins/workspace/etcd-proxy/gopath/src/google.golang.org/grpc/stream.go:254 +0x209

Goroutine 2016 (running) created at:
  google.golang.org/grpc/transport.newHTTP2Client()
      /home/jenkins/workspace/etcd-proxy/gopath/src/google.golang.org/grpc/transport/http2_client.go:267 +0x12ec
  google.golang.org/grpc/transport.NewClientTransport()
      /home/jenkins/workspace/etcd-proxy/gopath/src/google.golang.org/grpc/transport/transport.go:463 +0xbe
  google.golang.org/grpc.(*addrConn).resetTransport()
      /home/jenkins/workspace/etcd-proxy/gopath/src/google.golang.org/grpc/clientconn.go:876 +0x414
  google.golang.org/grpc.(*ClientConn).resetAddrConn.func1()
      /home/jenkins/workspace/etcd-proxy/gopath/src/google.golang.org/grpc/clientconn.go:648 +0x41

Goroutine 795 (running) created at:
  google.golang.org/grpc.newClientStream()
      /home/jenkins/workspace/etcd-proxy/gopath/src/google.golang.org/grpc/stream.go:269 +0x1703
  google.golang.org/grpc.NewClientStream()
      /home/jenkins/workspace/etcd-proxy/gopath/src/google.golang.org/grpc/stream.go:105 +0x1fc
  github.com/coreos/etcd/etcdserver/etcdserverpb.(*watchClient).Watch()
      /home/jenkins/workspace/etcd-proxy/gopath/src/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.go:3191 +0xe9
  github.com/coreos/etcd/clientv3.(*watchGrpcStream).openWatchClient()
      /home/jenkins/workspace/etcd-proxy/gopath/src/github.com/coreos/etcd/clientv3/watch.go:774 +0x18e
  github.com/coreos/etcd/clientv3.(*watchGrpcStream).newWatchClient()
      /home/jenkins/workspace/etcd-proxy/gopath/src/github.com/coreos/etcd/clientv3/watch.go:691 +0x5c3
  github.com/coreos/etcd/clientv3.(*watchGrpcStream).run()
      /home/jenkins/workspace/etcd-proxy/gopath/src/github.com/coreos/etcd/clientv3/watch.go:422 +0x12b
@MakMukhi
Copy link
Contributor

MakMukhi commented Jun 16, 2017 via email

k8s-github-robot pushed a commit to kubernetes/kubernetes that referenced this issue Oct 20, 2017
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

update gRPC to pick up data race fix

**What this PR does / why we need it**:

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #53124

**Special notes for your reviewer**:

**Release note**:

```release-note
update gRPC to v1.6.0 to pick up data race fix grpc/grpc-go#1316 
```
sttts pushed a commit to sttts/apiserver that referenced this issue Oct 21, 2017
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

update gRPC to pick up data race fix

**What this PR does / why we need it**:

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #53124

**Special notes for your reviewer**:

**Release note**:

```release-note
update gRPC to v1.6.0 to pick up data race fix grpc/grpc-go#1316
```

Kubernetes-commit: 70960a5ed785c64df837139a783f89901d7891f1
sttts pushed a commit to sttts/kube-aggregator that referenced this issue Oct 21, 2017
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

update gRPC to pick up data race fix

**What this PR does / why we need it**:

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #53124

**Special notes for your reviewer**:

**Release note**:

```release-note
update gRPC to v1.6.0 to pick up data race fix grpc/grpc-go#1316
```

Kubernetes-commit: 70960a5ed785c64df837139a783f89901d7891f1
sttts pushed a commit to sttts/sample-apiserver that referenced this issue Oct 21, 2017
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

update gRPC to pick up data race fix

**What this PR does / why we need it**:

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #53124

**Special notes for your reviewer**:

**Release note**:

```release-note
update gRPC to v1.6.0 to pick up data race fix grpc/grpc-go#1316
```

Kubernetes-commit: 70960a5ed785c64df837139a783f89901d7891f1
sttts pushed a commit to sttts/apiextensions-apiserver that referenced this issue Oct 21, 2017
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

update gRPC to pick up data race fix

**What this PR does / why we need it**:

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #53124

**Special notes for your reviewer**:

**Release note**:

```release-note
update gRPC to v1.6.0 to pick up data race fix grpc/grpc-go#1316
```

Kubernetes-commit: 70960a5ed785c64df837139a783f89901d7891f1
sttts pushed a commit to sttts/apiserver that referenced this issue Oct 26, 2017
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

update gRPC to pick up data race fix

**What this PR does / why we need it**:

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #53124

**Special notes for your reviewer**:

**Release note**:

```release-note
update gRPC to v1.6.0 to pick up data race fix grpc/grpc-go#1316
```

Kubernetes-commit: 70960a5ed785c64df837139a783f89901d7891f1
sttts pushed a commit to sttts/kube-aggregator that referenced this issue Oct 26, 2017
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

update gRPC to pick up data race fix

**What this PR does / why we need it**:

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #53124

**Special notes for your reviewer**:

**Release note**:

```release-note
update gRPC to v1.6.0 to pick up data race fix grpc/grpc-go#1316
```

Kubernetes-commit: 70960a5ed785c64df837139a783f89901d7891f1
sttts pushed a commit to sttts/sample-apiserver that referenced this issue Oct 26, 2017
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

update gRPC to pick up data race fix

**What this PR does / why we need it**:

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #53124

**Special notes for your reviewer**:

**Release note**:

```release-note
update gRPC to v1.6.0 to pick up data race fix grpc/grpc-go#1316
```

Kubernetes-commit: 70960a5ed785c64df837139a783f89901d7891f1
sttts pushed a commit to sttts/apiextensions-apiserver that referenced this issue Oct 26, 2017
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

update gRPC to pick up data race fix

**What this PR does / why we need it**:

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #53124

**Special notes for your reviewer**:

**Release note**:

```release-note
update gRPC to v1.6.0 to pick up data race fix grpc/grpc-go#1316
```

Kubernetes-commit: 70960a5ed785c64df837139a783f89901d7891f1
@lock lock bot locked as resolved and limited conversation to collaborators Sep 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants