Allow zookeeper heartbeat to expire if determined by the application
At init time, api server may be busy doing resync. At this time, it is ok if
zookeeper heartbeat expires. Added callback in zkclient to be called when kazoo
state goes to lost. API server sets it to a stub function initially, then resets
it after init is done.
Change-Id: Icd91cfb9637a8b0086a5486722a47e26a875acbb
Partial-Bug: 1463270
(cherry picked from commit 81f9efa126d7747e5313a61b55831ce01887e808)
Reviewed: https:/ /review. opencontrail. org/11462 github. org/Juniper/ contrail- controller/ commit/ 564be77452b4971 a7b3b08e35e6769 83e18fa7e4
Committed: http://
Submitter: Zuul
Branch: R2.20
commit 564be77452b4971 a7b3b08e35e6769 83e18fa7e4
Author: Sachin Bansal <email address hidden>
Date: Wed Jun 10 10:08:31 2015 -0700
Allow zookeeper heartbeat to expire if determined by the application
At init time, api server may be busy doing resync. At this time, it is ok if
zookeeper heartbeat expires. Added callback in zkclient to be called when kazoo
state goes to lost. API server sets it to a stub function initially, then resets
it after init is done.
Change-Id: Icd91cfb9637a8b 0086a5486722a47 e26a875acbb e5313a61b55831c e01887e808)
Partial-Bug: 1463270
(cherry picked from commit 81f9efa126d7747