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.
Reviewed: https:/ /review. opencontrail. org/11461 github. org/Juniper/ contrail- controller/ commit/ 81f9efa126d7747 e5313a61b55831c e01887e808
Committed: http://
Submitter: Zuul
Branch: master
commit 81f9efa126d7747 e5313a61b55831c e01887e808
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
Partial-Bug: 1463270