Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Manager.Elected() should beclosed after runnables are started
During debugging a weird issue with some tests failing if they were running too fast. In other words, calling Start() and Close() on a manager too fast throws an error where the informers haven't been able to sync, which then makes Start() fail with an error. In an effort to improve this behavior, tried to use Elected() to wait for leader election to start, which also waits for the cache. During some debugging, this issue happened again and upon digging a bit more it seems that the channel was closed before starting the runnables in some cases. This change reorders the close on cm.elected, which should fix the above issue. Signed-off-by: Vince Prignano <vincepri@vmware.com>
- Loading branch information