-
Notifications
You must be signed in to change notification settings - Fork 887
fix: write to executor stats map while holding mutex #7731
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
Conversation
Signed-off-by: Spike Curtis <spike@coder.com>
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.
Nice find!
🌮 @mtojek for the report |
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.
I'm not quite sure if this is related:
=== Failed
=== FAIL: coderd/database TestPubsub_Disconnect (12.09s)
pubsub_test.go:125:
Error Trace: /home/runner/work/coder/coder/coderd/database/pubsub_test.go:125
Error: Received unexpected error:
could not start resource:
github.com/coder/coder/coderd/database/postgres.OpenContainerized
/home/runner/work/coder/coder/coderd/database/postgres/postgres.go:118
- API error (500): driver failed programming external connectivity on endpoint eager_bouman (bf988aa79d77ab9d95e89f294334975a89e9b70d955c9f8d8d6e96294644d893): Error starting userland proxy: listen tcp4 0.0.0.0:36475: bind: address already in use
github.com/ory/dockertest/v3.(*Pool).RunWithOptions
/home/runner/go/pkg/mod/github.com/ory/dockertest/v3@v3.9.1/dockertest.go:457
github.com/coder/coder/coderd/database/postgres.OpenContainerized
/home/runner/work/coder/coder/coderd/database/postgres/postgres.go:82
github.com/coder/coder/coderd/database_test.TestPubsub_Disconnect
/home/runner/work/coder/coder/coderd/database/pubsub_test.go:124
testing.tRunner
/opt/hostedtoolcache/go/1.20.3/x64/src/testing/testing.go:1576
runtime.goexit
/opt/hostedtoolcache/go/1.20.3/x64/src/runtime/asm_amd64.s:1598
Test: TestPubsub_Disconnect
Unrelated to this PR. Test was added in #7660 |
…-executor-concurrent-map-write
…-executor-concurrent-map-write
fixes #7710