-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Data race in unit test #2577
Labels
bug
good first issue
Good for beginners
help wanted
Features that maintainers are willing to accept but do not have cycles to implement
Comments
chlunde
added a commit
to chlunde/jaeger
that referenced
this issue
Oct 22, 2020
TBufferedServer.Close() may close the data channel before Serve detects it. Move chan close() to Serve to prevent a panic caused by sending on a closed channel. See also golang/go#27769 (comment) === RUN TestTBufferedServer_SendReceive ================== WARNING: DATA RACE Write at 0x00c000074850 by goroutine 9: runtime.closechan() /home/travis/.gimme/versions/go1.15.2.linux.amd64/src/runtime/chan.go:352 +0x0 github.com/jaegertracing/jaeger/cmd/agent/app/servers.(*TBufferedServer).Stop() ... Previous read at 0x00c000074850 by goroutine 10: runtime.chansend() /home/travis/.gimme/versions/go1.15.2.linux.amd64/src/runtime/chan.go:158 +0x0 github.com/jaegertracing/jaeger/cmd/agent/app/servers.(*TBufferedServer).Serve() /home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/agent/app/servers/tbuffered_server.go:97 +0x264 ... ================== testing.go:1042: race detected during execution of test --- FAIL: TestTBufferedServer_SendReceive (0.01s) Closes jaegertracing#2577 Signed-off-by: Carl Henrik Lunde <[email protected]>
yurishkuro
pushed a commit
that referenced
this issue
Oct 25, 2020
TBufferedServer.Close() may close the data channel before Serve detects it. Move chan close() to Serve to prevent a panic caused by sending on a closed channel. See also golang/go#27769 (comment) === RUN TestTBufferedServer_SendReceive ================== WARNING: DATA RACE Write at 0x00c000074850 by goroutine 9: runtime.closechan() /home/travis/.gimme/versions/go1.15.2.linux.amd64/src/runtime/chan.go:352 +0x0 github.com/jaegertracing/jaeger/cmd/agent/app/servers.(*TBufferedServer).Stop() ... Previous read at 0x00c000074850 by goroutine 10: runtime.chansend() /home/travis/.gimme/versions/go1.15.2.linux.amd64/src/runtime/chan.go:158 +0x0 github.com/jaegertracing/jaeger/cmd/agent/app/servers.(*TBufferedServer).Serve() /home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/agent/app/servers/tbuffered_server.go:97 +0x264 ... ================== testing.go:1042: race detected during execution of test --- FAIL: TestTBufferedServer_SendReceive (0.01s) Closes #2577 Signed-off-by: Carl Henrik Lunde <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
good first issue
Good for beginners
help wanted
Features that maintainers are willing to accept but do not have cycles to implement
This might be flaky behavior as well, I haven't seen this one before. It failed master build.
https://travis-ci.org/github/jaegertracing/jaeger/jobs/735758903
cc @albertteoh
The text was updated successfully, but these errors were encountered: