forked from Kong/kong
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(migrations) prevent cassandra migrations on creating multiple def…
…ault workspaces ### Summary It has been reported on multiple issues that migrations with Cassandra may lead to multiple default workspaces to be created in database. Most recently by @jeremyjpj0916 on Kong#6403. This commit tries to tackle the issue by setting consistency of INSERT (that adds default workspace) query to QUORUM and consistency of SELECT (that tries to determine if there is a default workspace already) to SERIAL. The 212 to 213 uses same migration as 200 to 210 (which we fixed), so we can just reuse those on 212 to 213 too. We had in multiple places where we tried to ensure cassandra default workspace. This commit also moves that to single place.
- Loading branch information
Showing
3 changed files
with
30 additions
and
127 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