You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🐛 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 <[email protected]>
0 commit comments