open-nomad/client
Michael Schurter f86f0bd9ea Handle leader task being dead in RestoreState
Fixes the panic mentioned in
https://github.com/hashicorp/nomad/issues/3420#issuecomment-341666932

While a leader task dying serially stops all follower tasks, the
synchronizing of state is asynchrnous. Nomad can shutdown before all
follower tasks have updated their state to dead thus saving the state
necessary to hit this panic: *have a non-terminal alloc with a dead
leader.*

The actual fix is a simple nil check to not assume non-terminal allocs
leader's have a TaskRunner.
2017-11-15 10:36:13 -08:00
..
allocdir Enable more linters 2017-09-26 15:26:33 -07:00
config Nomad agent reload TLS configuration on SIGHUP (#3479) 2017-11-14 17:53:23 -08:00
driver Make device mounting unit test verify configuration via docker inspect 2017-11-13 09:56:54 -06:00
fingerprint Don't panic on unexpeced Consul response 2017-10-11 18:25:54 -07:00
getter
stats Fix GC'd alloc tracking 2017-11-01 15:16:38 -05:00
structs
testutil Skip if no docker 2017-10-19 16:55:10 -07:00
vaultclient Remove structs import from api 2017-09-29 10:36:08 -07:00
acl.go SecretID -> AuthToken 2017-10-12 15:16:33 -07:00
acl_test.go Remove structs import from api 2017-09-29 10:36:08 -07:00
alloc_runner.go Handle leader task being dead in RestoreState 2017-11-15 10:36:13 -08:00
alloc_runner_health_watcher.go
alloc_runner_test.go Handle leader task being dead in RestoreState 2017-11-15 10:36:13 -08:00
alloc_watcher.go Alloc watcher must send Node.SecretID as AuthToken 2017-10-12 16:38:02 -07:00
alloc_watcher_test.go Add functionality for authenticated volumes 2017-10-11 17:09:20 -07:00
client.go Nomad agent reload TLS configuration on SIGHUP (#3479) 2017-11-14 17:53:23 -08:00
client_test.go Fix GC'd alloc tracking 2017-11-01 15:16:38 -05:00
consul.go
consul_template.go alway load all templates 2017-11-10 12:35:51 -08:00
consul_template_test.go Handle multiple environment templates 2017-11-10 11:08:19 -08:00
consul_test.go
gc.go Remove noisy log line 2017-11-03 16:00:30 -07:00
gc_test.go Fix race in test 2017-11-01 15:16:38 -05:00
restarts.go Enable more linters 2017-09-26 15:26:33 -07:00
restarts_test.go Cleanup and test restart failure code 2017-09-15 14:54:37 -07:00
serverlist.go
serverlist_test.go
state_database.go Enable more linters 2017-09-26 15:26:33 -07:00
task_runner.go Handle leader task being dead in RestoreState 2017-11-15 10:36:13 -08:00
task_runner_test.go Move logic for determinic event display message to task_runner, added two new fields DisplayMessage and Details. 2017-11-03 09:13:01 -05:00
task_runner_unix_test.go
util.go
util_test.go Remove structs import from api 2017-09-29 10:36:08 -07:00