open-nomad/e2e/clientstate
Seth Hoenig e04ff0d935
client: ignore restart issued to terminal allocations (#17175)
* client: ignore restart issued to terminal allocations

This PR fixes a bug where issuing a restart to a terminal allocation
would cause the allocation to run its hooks anyway. This was particularly
apparent with group_service_hook who would then register services but
then never deregister them - as the allocation would be effectively in
a "zombie" state where it is prepped to run tasks but never will.

* e2e: add e2e test for alloc restart zombies

* cl: tweak text

Co-authored-by: Tim Gross <tgross@hashicorp.com>

---------

Co-authored-by: Tim Gross <tgross@hashicorp.com>
2023-05-16 10:19:41 -05:00
..
input client: ignore restart issued to terminal allocations (#17175) 2023-05-16 10:19:41 -05:00
allocs_test.go client: ignore restart issued to terminal allocations (#17175) 2023-05-16 10:19:41 -05:00
clientstate.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
restarter.nomad [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
sleeper.nomad [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00