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

Closes #3756: Conflict between deprecate_eof and fast_forward #3757

Merged
merged 2 commits into from
Jan 21, 2022

Conversation

JavierJF
Copy link
Collaborator

This PR also fixes a issue found during development regarding create_new_connection query annotation.

Query annotation issue description

When query annotation 'create_new_connection` is used, the request may fail if the connection is requested from the thread local cache instead of the connection pool.

'DEPRECATE_EOF' support wasn't properly tracked in
'server_capabilities'. Because this property is used for setting
'DEPRECATE_EOF' in 'client_flags' options for backend connections when
'fast_forward' is used, a mismatch between a client and a backend
connection could take place.
…nnection pool

A thread local connection should be retrieved only if 'fast_forward' is
disabled AND 'create_new_connection' wasn't present in the query.
@JavierJF
Copy link
Collaborator Author

Retest this please.

1 similar comment
@JavierJF
Copy link
Collaborator Author

Retest this please.

@renecannao renecannao merged commit 8095126 into v2.x Jan 21, 2022
@renecannao renecannao deleted the v2.x-3756 branch January 11, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants