Watcher cannot be started after start-stop sequence
Bug #1790912 reported by
Michal Dulko
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kuryr-kubernetes |
Fix Released
|
High
|
Michal Dulko |
Bug Description
Our watcher code is pretty spaghetti, so no doubt this happened. In controller HA configuration it may happen that Watcher is doing something like this due to leadership transitions:
watcher.start()
...
watcher.stop()
...
watcher.start()
Turns our watcher cannot be started again. This is due to the fact that we thought the watcher threads will be cleaning up after themselves. Meanwhile in stop() we're simply killing those threads with thread.stop() method, so thread is unable to do the cleanup.
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/600142
Review: https:/