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

Restore query() call for primary/replica connections #9236

Conversation

derrabus
Copy link
Member

On DBAL 2, PrimaryReadReplicaConnection::query() executed the query on the primary connection. I broke the usage of this "hidden feature" while removing deprecated calls. This PR restores the functionality. At the same time, it removes mock logic that was supposed to catch my mistake but did not succeed doing so.

@derrabus derrabus requested review from stof and greg0ire December 11, 2021 11:12
@stof
Copy link
Member

stof commented Dec 11, 2021

@derrabus the (deprecated) UuidGenerator is also affected by the same issue (it was also using query for that reason)

@derrabus derrabus force-pushed the bugfix/restore-query-on-primary-replica branch 2 times, most recently from ce8f0d4 to 017fe6c Compare December 11, 2021 11:36
@derrabus
Copy link
Member Author

Fixed as well!

@derrabus derrabus added this to the 2.10.4 milestone Dec 11, 2021
@derrabus derrabus force-pushed the bugfix/restore-query-on-primary-replica branch 3 times, most recently from 02a58d6 to e68094e Compare December 11, 2021 12:05
greg0ire
greg0ire previously approved these changes Dec 11, 2021
@beberlei
Copy link
Member

I have an alternative here: #9239

@derrabus derrabus force-pushed the bugfix/restore-query-on-primary-replica branch from 3f159c5 to 479d586 Compare December 13, 2021 14:05
@derrabus
Copy link
Member Author

@beberlei Your alternative targets 2.11. Shall we merge this PR anyway to fix the regression on 2.10?

@stof
Copy link
Member

stof commented Dec 13, 2021

@derrabus the alternative version could be applied on 2.10 if that's the selected solution IMO.

@derrabus
Copy link
Member Author

If we allow that kind of change in a bugfix release, okay.

@derrabus
Copy link
Member Author

Closing in favor of #9239

@derrabus derrabus closed this Dec 20, 2021
@derrabus derrabus deleted the bugfix/restore-query-on-primary-replica branch December 20, 2021 12:49
@derrabus derrabus removed this from the 2.10.4 milestone Dec 20, 2021
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.

4 participants