open-nomad/client/allocrunner/taskrunner
Seth Hoenig 21237d8337
client: avoid unconsumed channel in timer construction (#15215)
* client: avoid unconsumed channel in timer construction

This PR fixes a bug introduced in #11983 where a Timer initialized with 0
duration causes an immediate tick, even if Reset is called before reading the
channel. The fix is to avoid doing that, instead creating a Timer with a non-zero
initial wait time, and then immediately calling Stop.

* pr: remove redundant stop
2022-11-11 09:31:34 -06:00
..
getter client: recover from getter panics (#14696) 2022-09-26 15:16:26 -04:00
interfaces
restarts
state cleanup more helper updates (#14638) 2022-09-21 14:53:25 -05:00
template template: error on missing key (#15141) 2022-11-04 13:23:01 -04:00
testdata
artifact_hook.go
artifact_hook_test.go cleanup more helper updates (#14638) 2022-09-21 14:53:25 -05:00
connect_native_hook.go
connect_native_hook_test.go
device_hook.go
device_hook_test.go
dispatch_hook.go
dispatch_hook_test.go
driver_handle.go
envoy_bootstrap_hook.go connect: add nomad env to envoy bootstrap (#12959) 2022-09-22 13:18:18 -05:00
envoy_bootstrap_hook_test.go
envoy_version_hook.go
envoy_version_hook_test.go
errors.go
errors_test.go
identity_hook.go WI: set identity to client secret if missing (#15121) 2022-11-03 11:10:11 -04:00
lazy_handle.go
lifecycle.go
logmon_hook.go
logmon_hook_test.go cleanup more helper updates (#14638) 2022-09-21 14:53:25 -05:00
logmon_hook_unix_test.go
plugin_supervisor_hook.go
remotetask_hook.go
script_check_hook.go
script_check_hook_test.go
service_hook.go Add Namespace, Job and Group to envoy stats (#14311) 2022-09-22 10:38:21 -04:00
service_hook_test.go Add Namespace, Job and Group to envoy stats (#14311) 2022-09-22 10:38:21 -04:00
sids_hook.go
sids_hook_test.go
stats_hook.go
stats_hook_test.go
task_dir_hook.go
task_runner.go client: avoid unconsumed channel in timer construction (#15215) 2022-11-11 09:31:34 -06:00
task_runner_getters.go
task_runner_hooks.go Add Namespace, Job and Group to envoy stats (#14311) 2022-09-22 10:38:21 -04:00
task_runner_test.go e2e: convert flaky exec download in chroot unit test into e2e test (#14949) 2022-10-19 08:22:32 -05:00
tasklet.go
tasklet_test.go
template_hook.go template: protect use of template manager with a lock (#15192) 2022-11-10 08:30:27 -06:00
validate_hook.go
validate_hook_test.go
vault_hook.go
vault_hook_test.go
volume_hook.go
volume_hook_test.go