Comment 7 for bug 1719830

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/36134
Committed: http://github.com/Juniper/contrail-controller/commit/24fb66226309c4768134485227ccf13eb04c20e2
Submitter: Zuul (<email address hidden>)
Branch: master

commit 24fb66226309c4768134485227ccf13eb04c20e2
Author: Megh Bhatt <email address hidden>
Date: Fri Sep 29 15:04:04 2017 -0700

Maintain zookeeper lock during the whole database initialization

To ensure cassandra schema consistency, zookeeper lock is
used so that only one collector node is creating schema at
any given point of time. However if the creation of schema
fails then we were releasing the zookeeper lock and retrying.
This resulted in a situation where from cassandra perspective
schema was created concurrently and caused column family ID
mismatch. So now we will only release the zookeeper lock when
the schema creation is successful.

Change-Id: I1af4ef147ec31d44bce258b5af319589e27eb64e
Closes-Bug: #1719830