-
Notifications
You must be signed in to change notification settings - Fork 2k
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 in template runner #20163
Comments
This was referenced Mar 19, 2024
hashicorp/consul-template#1898 has been merged and we've sent a build to the folks who reported it so they can confirm it entirely fixes the issue. Once that's been done we'll get that dependency bump shipped here. |
tgross
added a commit
that referenced
this issue
Mar 27, 2024
A Nomad user reported an issue where template runner `View.poll` goroutines were being leaked when using templates with many dependencies. This resource leak was fixed in consul-template 0.37.4. Fixes: #20163
tgross
added a commit
that referenced
this issue
Mar 27, 2024
A Nomad user reported an issue where template runner `View.poll` goroutines were being leaked when using templates with many dependencies. This resource leak was fixed in consul-template 0.37.4. Fixes: #20163
tgross
added a commit
that referenced
this issue
Mar 27, 2024
A Nomad user reported an issue where template runner `View.poll` goroutines were being leaked when using templates with many dependencies. This resource leak was fixed in consul-template 0.37.4. Fixes: #20163
tgross
added a commit
that referenced
this issue
Mar 27, 2024
A Nomad user reported an issue where template runner `View.poll` goroutines were being leaked when using templates with many dependencies. This resource leak was fixed in consul-template 0.37.4. Fixes: #20163
tgross
added a commit
that referenced
this issue
Mar 27, 2024
A Nomad user reported an issue where template runner `View.poll` goroutines were being leaked when using templates with many dependencies. This resource leak was fixed in consul-template 0.37.4. Fixes: #20163
tgross
added a commit
that referenced
this issue
Mar 27, 2024
A Nomad user reported an issue where template runner `View.poll` goroutines were being leaked when using templates with many dependencies. This resource leak was fixed in consul-template 0.37.4. Fixes: #20163
tgross
added a commit
that referenced
this issue
Mar 27, 2024
A Nomad user reported an issue where template runner `View.poll` goroutines were being leaked when using templates with many dependencies. This resource leak was fixed in consul-template 0.37.4. Fixes: #20163
This was referenced Apr 4, 2024
philrenaud
pushed a commit
that referenced
this issue
Apr 18, 2024
A Nomad user reported an issue where template runner `View.poll` goroutines were being leaked when using templates with many dependencies. This resource leak was fixed in consul-template 0.37.4. Fixes: #20163
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A Nomad user reported an issue where template runner
View.poll
goroutines were being leaked when using templates with many dependencies.An investigation found that when the runner's
Run
method is in-flight and the runner concurrently receivesStop
, it's possible for the watcher to stop dependencies via stop and then immediately recreate them. Because theStop
method has returned, Nomad's template hook will assume that all goroutines have been stopped, and this causes theView.poll
goroutines to be leaked. The race condition for this case is very narrow, but is most likely to occur when the user has both a very large number of dependencies, short secret leases, and the templateWait
configuration is nil.I've got a PR fixing this in hashicorp/consul-template#1898. Once that's been merged and released, we'll need to bump the dependency in Nomad. Looking to ship this fix in the next patch version of Nomad, as well as backports.
The text was updated successfully, but these errors were encountered: