Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: avoid leaking tenant stopper
We've seen at least one stopper leak during a stress run. I was not able to reproduce it locally, but from the code it seems possible that we are leaking it here if something like this happens. 1. serverController's scanner ticks and starts scanning for expected tenants. 2. The server's stopper stops. 3. The tenant stopper for some tenant, foo, is also stopped in response. This tenant is stopped and removed from the running tenant entries. 4. Back in the serverController, we see that tenant foo isn't started. We try to start it. 5. We make a new stopper, but can't run an async task, so we exit with an error, leaving the stopper. Epic: none Release note: None
- Loading branch information