-
Notifications
You must be signed in to change notification settings - Fork 132
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
Goroutine leak after Worker.Stop() #1129
Comments
Yeah, AFAICT the shutdown process just closes a channel and returns :| so there's no way to wait for a clean shutdown. There are a few other shutdown leaks throughout the client, unfortunately they're definitely not all simple fixes. As far as this error:
^ that means you already have a version of thrift that's too new for cadence. They made a breaking change without releasing a new version, and go modules do not allow specifying upper limits, so unfortunately you need to downgrade it to something compatible. If you do a "clean" |
You can pin the thrift version: like this: https://github.com/uber/cadence/blob/d3d06825adcf11c20ec3fc58e329f1d9560bb729/go.mod#L92 |
Describe the bug
Worker.Stop()
doesn't await for goroutines to stop, which goleak identifies as a goroutine leak.To Reproduce
Is the issue reproducible?
Steps to reproduce the behavior:
go.mod
:main.go
:main_test.go
:Expected behavior
Additional Context
Used cadence-client
v0.17.0
, because with the program abovev0.18.2
download fails. But the reported problem is in both releases.The text was updated successfully, but these errors were encountered: