open-nomad/e2e/servicediscovery
Seth Hoenig 7375fd40fc
nsd: block on removal of services (#15862)
* nsd: block on removal of services

This PR uses a WaitGroup to ensure workload removals are complete
before returning from ServiceRegistrationHandler.RemoveWorkload of
the nomad service provider. The de-registration of individual services
still occurs asynchrously, but we must block on the parent removal
call so that we do not race with further operations on the same set
of services - e.g. in the case of a task restart where we de-register
and then re-register the services in quick succession.

Fixes #15032

* nsd: add e2e test for initial failing check and restart
2023-01-26 08:17:57 -06:00
..
input nsd: block on removal of services (#15862) 2023-01-26 08:17:57 -06:00
doc.go e2e: add initial service discovery tests. (#12512) 2022-04-11 11:12:24 +02:00
nomad_checks_test.go nsd: block on removal of services (#15862) 2023-01-26 08:17:57 -06:00
service_discovery_test.go nsd: block on removal of services (#15862) 2023-01-26 08:17:57 -06:00
simple_lb_test.go e2e: add e2e tests for nomad service disco checks 2022-08-22 15:31:13 -05:00