-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli) prefix connector errors in new DAO
Since recently, we call the new DAO's `assert(db:init_connector())` in the CLI _before_ instantiating the old DAO (because the latter needs the former as an attribute). For Cassandra, this has the effect of retrieving the cluster's topology, and thus trying to connect to the given contact points. If any error is encountered, the new DAO does not properly prefix the error with the `[Cassandra error]` prefix, as the old DAO would do. This goes unnoticed for the PostgreSQL strategy since the connector initialization is nopping. See a related CI failure here: https://travis-ci.com/Kong/kong-private/jobs/136391637#L1094 We now prefix connector errors (which are always strings). From #3648
- Loading branch information
1 parent
90096fb
commit 9f5102f
Showing
5 changed files
with
100 additions
and
53 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