-
Notifications
You must be signed in to change notification settings - Fork 1k
Enforce CLIENT_DEPRECATE_EOF
capability match for fast-forward
sessions
#4819
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
Open
JavierJF
wants to merge
12
commits into
v3.0
Choose a base branch
from
v3.0-ff_conns_eof_caps_match
base: v3.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
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
- Ensures matching for 'CLIENT_DEPRECATE_EOF' capability when creating or acquiring backend conns for 'fast-forward' sessions. - Since 'CLIENT_DEPRECATE_EOF' capability isn't enforced on backend connections for regular sessions, a mismatch between client and backend capabilities is possible. A verification has been introduced when a session switches to 'fast-forward', in case of capabilities mismatch, an error is logged and client disconnected.
…lclient' Using both libraries allows to test the compatibility of 'fast-forward' sessions for SQLite3 sessions.
retest this please |
Retest this please |
@JavierJF : please perform a final review before merging |
Retest this please. |
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.
This PR ensures that a mismatch between frontend and backend connections can't take place for
CLIENT_DEPRECATE_EOF
capability. This is enforced with checks for two different scenarios:or acquiring backend conns for 'fast-forward' sessions.
connections for regular sessions, a mismatch between client and
backend capabilities is possible. A verification has been introduced
when a session switches to 'fast-forward', in case of capabilities
mismatch, an error is logged and client disconnected.
This PR also introduced a test that can serve as a guide when further testing capabilities matching. The test design is based is based on possibilities exploration on the scenarios that can be found in the connection pool. The higher degree of verbosity of the test can also serve as reference for other tests that require inspecting many
ProxySQL
internals for their checks.