Skip to content

Data race in test/go (ubuntu-latest) #523

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

Closed
coadler opened this issue Mar 22, 2022 · 1 comment · Fixed by #2883
Closed

Data race in test/go (ubuntu-latest) #523

coadler opened this issue Mar 22, 2022 · 1 comment · Fixed by #2883
Labels
api Area: HTTP API
Milestone

Comments

@coadler
Copy link
Contributor

coadler commented Mar 22, 2022

https://github.com/coder/coder/runs/5646611663?check_suite_focus=true

==================
WARNING: DATA RACE
Read at 0x00c0023ae194 by goroutine 389:
  runtime.slicecopy()
      /opt/hostedtoolcache/go/1.17.7/x64/src/runtime/slice.go:284 +0x0
  bufio.(*Writer).Write()
      /opt/hostedtoolcache/go/1.17.7/x64/src/bufio/bufio.go:651 +0x33d
  nhooyr.io/websocket.(*Conn).writeFramePayload()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:356 +0x46d
  nhooyr.io/websocket.(*Conn).writeFrame()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:310 +0xa1c
  nhooyr.io/websocket.(*Conn).write()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:129 +0x2d1
  nhooyr.io/websocket.(*Conn).Write()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:42 +0x8d
  nhooyr.io/websocket.(*netConn).Write()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/netconn.go:84 +0xaf
  github.com/hashicorp/yamux.(*Session).send()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/session.go:430 +0x3da
  github.com/hashicorp/yamux.newSession·dwrap·2()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/session.go:114 +0x39

Previous write at 0x00c0023ae194 by goroutine 522:
  github.com/hashicorp/yamux.header.encode()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/const.go:177 +0x5c
  github.com/hashicorp/yamux.(*Stream).write()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/stream.go:201 +0x3cd
  github.com/hashicorp/yamux.(*Stream).Write()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/stream.go:158 +0x18c
  storj.io/drpc/drpcwire.(*Writer).Flush()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcwire/writer.go:85 +0xb9
  storj.io/drpc/drpcstream.(*Stream).sendPacket()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcstream/stream.go:263 +0x231
  storj.io/drpc/drpcstream.(*Stream).Close()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcstream/stream.go:474 +0x194
  storj.io/drpc/drpcconn.(*Conn).Invoke.func1()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcconn/conn.go:80 +0x3d
  storj.io/drpc/drpcconn.(*Conn).Invoke()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcconn/conn.go:94 +0x3e1
  github.com/coder/coder/provisionersdk.(*multiplexedDRPC).Invoke()
      /home/runner/work/coder/coder/provisionersdk/transport.go:69 +0x352
  github.com/coder/coder/provisionerd/proto.(*drpcProvisionerDaemonClient).UpdateJob()
      /home/runner/work/coder/coder/provisionerd/proto/provisionerd_drpc.pb.go:68 +0xe2
  github.com/coder/coder/provisionerd.(*Server).runJob.func1()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:233 +0x3b3

Goroutine 389 (running) created at:
  github.com/hashicorp/yamux.newSession()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/session.go:114 +0x8d0
  github.com/hashicorp/yamux.Client()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/mux.go:113 +0x207
  github.com/coder/coder/codersdk.(*Client).ListenProvisionerDaemon()
      /home/runner/work/coder/coder/codersdk/provisionerdaemons.go:41 +0x525
  github.com/coder/coder/codersdk.(*Client).ListenProvisionerDaemon-fm()
      /home/runner/work/coder/coder/codersdk/provisionerdaemons.go:23 +0x59
  github.com/coder/coder/provisionerd.(*Server).connect()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:111 +0x231
  github.com/coder/coder/provisionerd.New·dwrap·1()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:78 +0x58

Goroutine 522 (running) created at:
  github.com/coder/coder/provisionerd.(*Server).runJob()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:224 +0x184
  github.com/coder/coder/provisionerd.(*Server).acquireJob·dwrap·4()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:220 +0x64
==================
==================
WARNING: DATA RACE
Read at 0x00c0023ae195 by goroutine 389:
  runtime.slicecopy()
      /opt/hostedtoolcache/go/1.17.7/x64/src/runtime/slice.go:284 +0x0
  bufio.(*Writer).Write()
      /opt/hostedtoolcache/go/1.17.7/x64/src/bufio/bufio.go:651 +0x33d
  nhooyr.io/websocket.(*Conn).writeFramePayload()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:356 +0x46d
  nhooyr.io/websocket.(*Conn).writeFrame()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:310 +0xa1c
  nhooyr.io/websocket.(*Conn).write()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:129 +0x2d1
  nhooyr.io/websocket.(*Conn).Write()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:42 +0x8d
  nhooyr.io/websocket.(*netConn).Write()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/netconn.go:84 +0xaf
  github.com/hashicorp/yamux.(*Session).send()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/session.go:430 +0x3da
  github.com/hashicorp/yamux.newSession·dwrap·2()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/session.go:114 +0x39

Previous write at 0x00c0023ae195 by goroutine 522:
  github.com/hashicorp/yamux.header.encode()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/const.go:178 +0x7c
  github.com/hashicorp/yamux.(*Stream).write()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/stream.go:201 +0x3cd
  github.com/hashicorp/yamux.(*Stream).Write()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/stream.go:158 +0x18c
  storj.io/drpc/drpcwire.(*Writer).Flush()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcwire/writer.go:85 +0xb9
  storj.io/drpc/drpcstream.(*Stream).sendPacket()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcstream/stream.go:263 +0x231
  storj.io/drpc/drpcstream.(*Stream).Close()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcstream/stream.go:474 +0x194
  storj.io/drpc/drpcconn.(*Conn).Invoke.func1()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcconn/conn.go:80 +0x3d
  storj.io/drpc/drpcconn.(*Conn).Invoke()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcconn/conn.go:94 +0x3e1
  github.com/coder/coder/provisionersdk.(*multiplexedDRPC).Invoke()
      /home/runner/work/coder/coder/provisionersdk/transport.go:69 +0x352
  github.com/coder/coder/provisionerd/proto.(*drpcProvisionerDaemonClient).UpdateJob()
      /home/runner/work/coder/coder/provisionerd/proto/provisionerd_drpc.pb.go:68 +0xe2
  github.com/coder/coder/provisionerd.(*Server).runJob.func1()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:233 +0x3b3

Goroutine 389 (running) created at:
  github.com/hashicorp/yamux.newSession()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/session.go:114 +0x8d0
  github.com/hashicorp/yamux.Client()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/mux.go:113 +0x207
  github.com/coder/coder/codersdk.(*Client).ListenProvisionerDaemon()
      /home/runner/work/coder/coder/codersdk/provisionerdaemons.go:41 +0x525
  github.com/coder/coder/codersdk.(*Client).ListenProvisionerDaemon-fm()
      /home/runner/work/coder/coder/codersdk/provisionerdaemons.go:23 +0x59
  github.com/coder/coder/provisionerd.(*Server).connect()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:111 +0x231
  github.com/coder/coder/provisionerd.New·dwrap·1()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:78 +0x58

Goroutine 522 (running) created at:
  github.com/coder/coder/provisionerd.(*Server).runJob()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:224 +0x184
  github.com/coder/coder/provisionerd.(*Server).acquireJob·dwrap·4()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:220 +0x64
==================
==================
WARNING: DATA RACE
Read at 0x00c0023ae196 by goroutine 389:
  runtime.slicecopy()
      /opt/hostedtoolcache/go/1.17.7/x64/src/runtime/slice.go:284 +0x0
  bufio.(*Writer).Write()
      /opt/hostedtoolcache/go/1.17.7/x64/src/bufio/bufio.go:651 +0x33d
  nhooyr.io/websocket.(*Conn).writeFramePayload()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:356 +0x46d
  nhooyr.io/websocket.(*Conn).writeFrame()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:310 +0xa1c
  nhooyr.io/websocket.(*Conn).write()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:129 +0x2d1
  nhooyr.io/websocket.(*Conn).Write()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:42 +0x8d
  nhooyr.io/websocket.(*netConn).Write()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/netconn.go:84 +0xaf
  github.com/hashicorp/yamux.(*Session).send()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/session.go:430 +0x3da
  github.com/hashicorp/yamux.newSession·dwrap·2()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/session.go:114 +0x39

Previous write at 0x00c0023ae196 by goroutine 522:
  encoding/binary.bigEndian.PutUint16()
      /opt/hostedtoolcache/go/1.17.7/x64/src/encoding/binary/binary.go:107 +0xb4
  github.com/hashicorp/yamux.header.encode()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/const.go:179 +0x31
  github.com/hashicorp/yamux.(*Stream).write()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/stream.go:201 +0x3cd
  github.com/hashicorp/yamux.(*Stream).Write()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/stream.go:158 +0x18c
  storj.io/drpc/drpcwire.(*Writer).Flush()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcwire/writer.go:85 +0xb9
  storj.io/drpc/drpcstream.(*Stream).sendPacket()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcstream/stream.go:263 +0x231
  storj.io/drpc/drpcstream.(*Stream).Close()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcstream/stream.go:474 +0x194
  storj.io/drpc/drpcconn.(*Conn).Invoke.func1()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcconn/conn.go:80 +0x3d
  storj.io/drpc/drpcconn.(*Conn).Invoke()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcconn/conn.go:94 +0x3e1
  github.com/coder/coder/provisionersdk.(*multiplexedDRPC).Invoke()
      /home/runner/work/coder/coder/provisionersdk/transport.go:69 +0x352
  github.com/coder/coder/provisionerd/proto.(*drpcProvisionerDaemonClient).UpdateJob()
      /home/runner/work/coder/coder/provisionerd/proto/provisionerd_drpc.pb.go:68 +0xe2
  github.com/coder/coder/provisionerd.(*Server).runJob.func1()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:233 +0x3b3

Goroutine 389 (running) created at:
  github.com/hashicorp/yamux.newSession()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/session.go:114 +0x8d0
  github.com/hashicorp/yamux.Client()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/mux.go:113 +0x207
  github.com/coder/coder/codersdk.(*Client).ListenProvisionerDaemon()
      /home/runner/work/coder/coder/codersdk/provisionerdaemons.go:41 +0x525
  github.com/coder/coder/codersdk.(*Client).ListenProvisionerDaemon-fm()
      /home/runner/work/coder/coder/codersdk/provisionerdaemons.go:23 +0x59
  github.com/coder/coder/provisionerd.(*Server).connect()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:111 +0x231
  github.com/coder/coder/provisionerd.New·dwrap·1()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:78 +0x58

Goroutine 522 (running) created at:
  github.com/coder/coder/provisionerd.(*Server).runJob()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:224 +0x184
  github.com/coder/coder/provisionerd.(*Server).acquireJob·dwrap·4()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:220 +0x64
==================
==================
WARNING: DATA RACE
Read at 0x00c0023ae197 by goroutine 389:
  runtime.slicecopy()
      /opt/hostedtoolcache/go/1.17.7/x64/src/runtime/slice.go:284 +0x0
  bufio.(*Writer).Write()
      /opt/hostedtoolcache/go/1.17.7/x64/src/bufio/bufio.go:651 +0x33d
  nhooyr.io/websocket.(*Conn).writeFramePayload()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:356 +0x46d
  nhooyr.io/websocket.(*Conn).writeFrame()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:310 +0xa1c
  nhooyr.io/websocket.(*Conn).write()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:129 +0x2d1
  nhooyr.io/websocket.(*Conn).Write()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:42 +0x8d
  nhooyr.io/websocket.(*netConn).Write()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/netconn.go:84 +0xaf
  github.com/hashicorp/yamux.(*Session).send()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/session.go:430 +0x3da
  github.com/hashicorp/yamux.newSession·dwrap·2()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/session.go:114 +0x39

Previous write at 0x00c0023ae197 by goroutine 522:
  encoding/binary.bigEndian.PutUint16()
      /opt/hostedtoolcache/go/1.17.7/x64/src/encoding/binary/binary.go:108 +0xcf
  github.com/hashicorp/yamux.header.encode()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/const.go:179 +0x31
  github.com/hashicorp/yamux.(*Stream).write()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/stream.go:201 +0x3cd
  github.com/hashicorp/yamux.(*Stream).Write()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/stream.go:158 +0x18c
  storj.io/drpc/drpcwire.(*Writer).Flush()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcwire/writer.go:85 +0xb9
  storj.io/drpc/drpcstream.(*Stream).sendPacket()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcstream/stream.go:263 +0x231
  storj.io/drpc/drpcstream.(*Stream).Close()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcstream/stream.go:474 +0x194
  storj.io/drpc/drpcconn.(*Conn).Invoke.func1()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcconn/conn.go:80 +0x3d
  storj.io/drpc/drpcconn.(*Conn).Invoke()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcconn/conn.go:94 +0x3e1
  github.com/coder/coder/provisionersdk.(*multiplexedDRPC).Invoke()
      /home/runner/work/coder/coder/provisionersdk/transport.go:69 +0x352
  github.com/coder/coder/provisionerd/proto.(*drpcProvisionerDaemonClient).UpdateJob()
      /home/runner/work/coder/coder/provisionerd/proto/provisionerd_drpc.pb.go:68 +0xe2
  github.com/coder/coder/provisionerd.(*Server).runJob.func1()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:233 +0x3b3

Goroutine 389 (running) created at:
  github.com/hashicorp/yamux.newSession()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/session.go:114 +0x8d0
  github.com/hashicorp/yamux.Client()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/mux.go:113 +0x207
  github.com/coder/coder/codersdk.(*Client).ListenProvisionerDaemon()
      /home/runner/work/coder/coder/codersdk/provisionerdaemons.go:41 +0x525
  github.com/coder/coder/codersdk.(*Client).ListenProvisionerDaemon-fm()
      /home/runner/work/coder/coder/codersdk/provisionerdaemons.go:23 +0x59
  github.com/coder/coder/provisionerd.(*Server).connect()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:111 +0x231
  github.com/coder/coder/provisionerd.New·dwrap·1()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:78 +0x58

Goroutine 522 (running) created at:
  github.com/coder/coder/provisionerd.(*Server).runJob()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:224 +0x184
  github.com/coder/coder/provisionerd.(*Server).acquireJob·dwrap·4()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:220 +0x64
==================
==================
WARNING: DATA RACE
Read at 0x00c0023ae198 by goroutine 389:
  runtime.slicecopy()
      /opt/hostedtoolcache/go/1.17.7/x64/src/runtime/slice.go:284 +0x0
  bufio.(*Writer).Write()
      /opt/hostedtoolcache/go/1.17.7/x64/src/bufio/bufio.go:651 +0x33d
  nhooyr.io/websocket.(*Conn).writeFramePayload()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:356 +0x46d
  nhooyr.io/websocket.(*Conn).writeFrame()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:310 +0xa1c
  nhooyr.io/websocket.(*Conn).write()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:129 +0x2d1
  nhooyr.io/websocket.(*Conn).Write()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/write.go:42 +0x8d
  nhooyr.io/websocket.(*netConn).Write()
      /home/runner/go/pkg/mod/nhooyr.io/websocket@v1.8.7/netconn.go:84 +0xaf
  github.com/hashicorp/yamux.(*Session).send()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/session.go:430 +0x3da
  github.com/hashicorp/yamux.newSession·dwrap·2()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/session.go:114 +0x39

Previous write at 0x00c0023ae19d by goroutine 522:
  encoding/binary.bigEndian.PutUint32()
      /opt/hostedtoolcache/go/1.17.7/x64/src/encoding/binary/binary.go:119 +0x1a4
  github.com/hashicorp/yamux.header.encode()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/const.go:181 +0x[162](https://github.com/coder/coder/runs/5646611663?check_suite_focus=true#step:7:162)
  github.com/hashicorp/yamux.(*Stream).write()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/stream.go:201 +0x3cd
  github.com/hashicorp/yamux.(*Stream).Write()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/stream.go:158 +0x18c
  storj.io/drpc/drpcwire.(*Writer).Flush()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcwire/writer.go:85 +0xb9
  storj.io/drpc/drpcstream.(*Stream).sendPacket()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcstream/stream.go:263 +0x231
  storj.io/drpc/drpcstream.(*Stream).Close()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcstream/stream.go:474 +0x194
  storj.io/drpc/drpcconn.(*Conn).Invoke.func1()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcconn/conn.go:80 +0x3d
  storj.io/drpc/drpcconn.(*Conn).Invoke()
      /home/runner/go/pkg/mod/storj.io/drpc@v0.0.30/drpcconn/conn.go:94 +0x3e1
  github.com/coder/coder/provisionersdk.(*multiplexedDRPC).Invoke()
      /home/runner/work/coder/coder/provisionersdk/transport.go:69 +0x352
  github.com/coder/coder/provisionerd/proto.(*drpcProvisionerDaemonClient).UpdateJob()
      /home/runner/work/coder/coder/provisionerd/proto/provisionerd_drpc.pb.go:68 +0xe2
  github.com/coder/coder/provisionerd.(*Server).runJob.func1()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:233 +0x3b3

Goroutine 389 (running) created at:
  github.com/hashicorp/yamux.newSession()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/session.go:114 +0x8d0
  github.com/hashicorp/yamux.Client()
      /home/runner/go/pkg/mod/github.com/hashicorp/yamux@v0.0.0-20211028200310-0bc27b27de87/mux.go:113 +0x207
  github.com/coder/coder/codersdk.(*Client).ListenProvisionerDaemon()
      /home/runner/work/coder/coder/codersdk/provisionerdaemons.go:41 +0x525
  github.com/coder/coder/codersdk.(*Client).ListenProvisionerDaemon-fm()
      /home/runner/work/coder/coder/codersdk/provisionerdaemons.go:23 +0x59
  github.com/coder/coder/provisionerd.(*Server).connect()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:111 +0x231
  github.com/coder/coder/provisionerd.New·dwrap·1()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:78 +0x58

Goroutine 522 (running) created at:
  github.com/coder/coder/provisionerd.(*Server).runJob()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:224 +0x[184](https://github.com/coder/coder/runs/5646611663?check_suite_focus=true#step:7:184)
  github.com/coder/coder/provisionerd.(*Server).acquireJob·dwrap·4()
      /home/runner/work/coder/coder/provisionerd/provisionerd.go:[220](https://github.com/coder/coder/runs/5646611663?check_suite_focus=true#step:7:220) +0x64
==================
@misskniss
Copy link

Closing this unless we see it again in the future. NOTE: Please add tickets for any race conditions that come up and get fixed and attach the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Area: HTTP API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants