New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error handling and logging when linking CSQL instance #7158
Merged
Conversation
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
fredzqm
changed the title
Add warning if CLI attempts to change linked CSQL database
Warning if linked CSQL database has changed & Tweak create instance template
May 10, 2024
fredzqm
changed the title
Warning if linked CSQL database has changed & Tweak create instance template
Warning if linked CSQL database has changed
May 10, 2024
rosalyntan
approved these changes
May 10, 2024
rosalyntan
approved these changes
May 10, 2024
fredzqm
changed the title
Warning if linked CSQL database has changed
Error handling and logging on linking CSQL instance
May 10, 2024
fredzqm
changed the title
Error handling and logging on linking CSQL instance
Error handling and logging when linking CSQL instance
May 10, 2024
joehan
added a commit
that referenced
this pull request
May 20, 2024
* Cloud SQL create and update polish (#7159) * improve logged message execute SQL commands (#7156) * Error handling and logging when linking CSQL instance (#7158) * Display accurate message for INACCESSIBLE_SCHEMA error (#7157) * handle INACCESSIBLE_SCHEMA case separately * error msg * m * m * m * merge * feedbacks * Jh idx no metadata calls (#7179) * Avoid triggering metadata server calls in idx * Remove outdated service account check * Update Firebase Logo (#7180) * unleash turtles (#7174) * unleash turtles * Update CHANGELOG.md * Flag flip for gen kit (#7175) * Flag flip for gen kit * Update CHANGELOG.md * update icons --------- Co-authored-by: Bryan Kendall <bkend@google.com> Co-authored-by: joehan <joehanley@google.com> * Use client instead of size 1 pool (#7182) * Fix schema validation (#7185) * Fix schema validation * Also depend on redhat.yaml * fix typo --------- Co-authored-by: Fred Zhang <fredzqm@google.com> Co-authored-by: Harold Shen <hlshen@google.com> Co-authored-by: Bryan Kendall <bkend@google.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
INACCESSIBLE_SCHEMA
handled in Display accurate message for INACCESSIBLE_SCHEMA error #7157.sql:diff
correctly. It was swallowing errors.sql:migrate
ordeploy
. Log this, so any subsequent errors aren't confusing.Scenarios Tested
dataconnect:sql:*
on a non-exist service-id:dataconnect:sql:*
on existing but wrong region service-id:When switch a service to connect to a different CSQL database:
Sample Commands