open-nomad/client
Tim Gross 265e488ab4
task runner: fix goroutine leak in prestart hook (#11741)
The task runner prestart hooks take a `joincontext` so they have the
option to exit early if either of two contexts are canceled: from
killing the task or client shutdown. Some tasks exit without being
shutdown from the server, so neither of the joined contexts ever gets
canceled and we leak the `joincontext` (48 bytes) and its internal
goroutine. This primarily impacts batch jobs and any task that fails
or completes early such as non-sidecar prestart lifecycle tasks.
Cancel the `joincontext` after the prestart call exits to fix the
leak.
2021-12-23 11:50:51 -05:00
..
allocdir chore: fixup inconsistent method receiver names. (#11704) 2021-12-20 11:44:21 +01:00
allochealth
allocrunner task runner: fix goroutine leak in prestart hook (#11741) 2021-12-23 11:50:51 -05:00
allocwatcher client: never embed alloc_dir in chroot 2021-10-18 09:22:01 -07:00
config docs: fix typo in the comment 2021-11-25 00:35:45 +01:00
consul
devicemanager
dynamicplugins
fingerprint fix host network reserved port fingerprint (#11728) 2021-12-22 15:29:54 -05:00
interfaces
lib gofmt all the files 2021-10-01 10:14:28 -04:00
logmon logmon: Fix a memory leak on task restart 2021-10-05 12:11:53 -04:00
pluginmanager Log error if there are no event handlers registered 2021-10-11 19:44:52 +00:00
servers
state gofmt all the files 2021-10-01 10:14:28 -04:00
stats
structs remove generated files 2021-11-24 18:54:50 +00:00
taskenv client: task env vars should take precendece over host env vars. 2021-09-20 09:15:28 +01:00
testutil cli: refactor operator debug capture (#11466) 2021-11-05 19:43:10 -04:00
vaultclient
acl.go
acl_test.go
agent_endpoint.go
agent_endpoint_test.go
alloc_endpoint.go
alloc_endpoint_test.go
alloc_watcher_e2e_test.go
client.go chore: fixup inconsistent method receiver names. (#11704) 2021-12-20 11:44:21 +01:00
client_stats_endpoint.go
client_stats_endpoint_test.go
client_test.go client: defensively log reserved ports 2021-10-04 15:43:35 -07:00
csi_endpoint.go
csi_endpoint_test.go
driver_manager_test.go
enterprise_client_oss.go gofmt all the files 2021-10-01 10:14:28 -04:00
fingerprint_manager.go chore: fixup inconsistent method receiver names. (#11704) 2021-12-20 11:44:21 +01:00
fingerprint_manager_test.go
fs_endpoint.go
fs_endpoint_test.go test: update tests to properly use AllocDir 2021-10-19 10:49:07 -07:00
gc.go
gc_test.go
heartbeatstop.go
heartbeatstop_test.go
node_updater.go
rpc.go
rpc_test.go
testing.go
util.go
util_test.go