-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#21438] YSQL: Forward errors around drop db/role as accurately as po…
…ssible Summary: This diff changes the error forwarding in place when dealing with errors around database/user being dropped with Connection Manager. Old behaviour: - We would earlier construct an error message from the message/hint of the server's error (depending on invalid user or database, respectively) and forward to client, along with a hardcoded SQLState. - In a scenario with multiple logical connections in a dropped/invalid pool we would use the information that if the current db/user is dropped, then construct an error from Connection Manager to be forwarded to the client, rather than relying on the error sent by the server New behaviour: - Forward the server error, including its detail and hint, if any, as it is, back to the client - Despite of knowing that the currently used db/user is dropped, still forward the client query to the server, then forward this error transparently back to the user as in the previous point Jira: DB-10320 Test Plan: Jenkins: enable connection manager, all tests Reviewers: skumar, devansh.saxena, mkumar, stiwary, vpatibandla Reviewed By: devansh.saxena Subscribers: yql Differential Revision: https://phorge.dev.yugabyte.com/D41398
- Loading branch information
Showing
2 changed files
with
26 additions
and
22 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