Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Megh Bhatt
committed
Sep 29, 2017
1 parent
54833d2
commit 2302f77
Showing
8 changed files
with
37 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2302f77
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this bug has some workaround? I met this issue, and I can't apply patch now.
I restart the contrail service, but it doesn't take effect.