Skip to content
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

Addition of @@enable_system_settings to vtgate #7300

Merged
merged 10 commits into from
Jan 20, 2021
Merged

Conversation

frouioui
Copy link
Member

@frouioui frouioui commented Jan 15, 2021

Signed-off-by: Florent Poinsard [email protected]

Description

This pull request introduces a new system variable: enable_system_settings. This VitessAware variable is used to define wether the current session is allowed to use reserved connection or not.

The default value of the variable is based on VTGate's -enable_system_settings flag.

Fixes #6860.

Checklist

  • Should this PR be backported?
  • Tests were added or are not required
  • Documentation was added or is not required

Impacted Areas in Vitess

Components that this PR will affect:

  • Query Serving
  • VReplication
  • Cluster Management
  • Build
  • VTAdmin

@frouioui
Copy link
Member Author

The new variable is not tested for all test cases yet. Specifically the following one:

func TestSelectSystemVariables(t *testing.T) {

This specific test case relates to the issue mentioned in #7301.

@frouioui frouioui marked this pull request as ready for review January 18, 2021 12:46
@frouioui frouioui changed the title Addition of @@use_reserved_connection to vtgate Addition of @@enable_system_settings to vtgate Jan 18, 2021
@systay
Copy link
Collaborator

systay commented Jan 19, 2021

It would be great if you could add an end to end test in https://github.com/vitessio/vitess/blob/master/go/test/endtoend/vtgate/reservedconn/sysvar_test.go

@frouioui
Copy link
Member Author

frouioui commented Jan 19, 2021

Select tests added in 4bfaf2d, and end-to-end tests added in ebf4d93.

@systay
Copy link
Collaborator

systay commented Jan 20, 2021

Really nice. Welcome as new contributor! 🤗

@systay systay merged commit d54b87c into vitessio:master Jan 20, 2021
@frouioui
Copy link
Member Author

Awesome! Thank you 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make enable_system_settings as vitess_metadata
3 participants