Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#21757] YSQL: Support for single-use GUC variables in YSQL Connectio…
…n Manager Summary: YSQL Connection Manager stores the context of altered GUC variables for each logical connection, and replays the stored context at the beginning of every transaction boundary on the physical connection being used. There are some variables that are implicitly set to a different value after a certain event has occurred. One such example of this is `yb_test_fail_next_ddl`, which returns an error upon the execution of the next DDL statement, and then sets itself to false. These implicit changes cannot be tracked by Connection Manager, and this patch creates the provision for Connection Manager to do so. Changes in this diff: - Remove changes made as a "hack" to pass a test in TestYsqlUpgrade.java - When connection manager is the client, if any of the variables in the single-use category are implicitly changed, send a ParameterStatus packet back to Connection Manager Jira: DB-10631 Test Plan: Jenkins: enable connection manager, test regex: .*TestYsqlUpgrade.* ./yb_build.sh --enable-ysql-conn-mgr-test --java-test org.yb.pgsql.TestYsqlUpgrade#creatingSystemRelsAfterFailure Reviewers: nkumar, mkumar Reviewed By: nkumar Subscribers: yql Differential Revision: https://phorge.dev.yugabyte.com/D34450
- Loading branch information
rahulb-yb
committed
Apr 29, 2024
1 parent
c4056b7
commit 51f35fc
Showing
5 changed files
with
36 additions
and
3 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